	.file	"886145.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"> KO, expected: %d, got: %d\n"
.LC1:
	.string	"> OK, result: %d\n"
	.text
	.globl	ft_strncmp_test
	.type	ft_strncmp_test, @function
ft_strncmp_test:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ft_strncmp@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	je	.L2
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ft_strncmp_test, .-ft_strncmp_test
	.section	.rodata
.LC2:
	.string	"abcdefghi"
.LC3:
	.string	"abcdEfghi"
	.align 8
.LC4:
	.string	"[1] Testing strings \"%s\" and \"%s\"\n"
	.align 8
.LC5:
	.string	"[2] Testing strings \"%s\" and \"%s\"\n"
	.align 8
.LC6:
	.string	"[3] Testing strings \"%s\" and \"%s\"\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -15[rbp], 1698914913
	mov	WORD PTR -11[rbp], 26726
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L7:
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ft_strncmp_test
	add	DWORD PTR -36[rbp], 1
.L6:
	cmp	DWORD PTR -36[rbp], 9
	jle	.L7
	mov	DWORD PTR -36[rbp], 0
	lea	rdx, -15[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -36[rbp]
	lea	rcx, -15[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ft_strncmp_test
	add	DWORD PTR -36[rbp], 1
.L8:
	cmp	DWORD PTR -36[rbp], 9
	jle	.L9
	mov	DWORD PTR -36[rbp], 0
	lea	rdx, -15[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L11:
	mov	edx, DWORD PTR -36[rbp]
	lea	rcx, -15[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ft_strncmp_test
	add	DWORD PTR -36[rbp], 1
.L10:
	cmp	DWORD PTR -36[rbp], 9
	jle	.L11
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"886145.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"> KO, expected: %d, got: %d\012\000"
	.align	2
.LC1:
	.ascii	"> OK, result: %d\012\000"
	.text
	.align	2
	.global	ft_strncmp_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	ft_strncmp_test, %function
ft_strncmp_test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strncmp
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	ft_strncmp
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L2
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L5
	bl	printf
	b	.L4
.L2:
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+4
	bl	printf
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	ft_strncmp_test, .-ft_strncmp_test
	.section	.rodata
	.align	2
.LC2:
	.ascii	"abcdefghi\000"
	.align	2
.LC3:
	.ascii	"abcdEfghi\000"
	.align	2
.LC5:
	.ascii	"[1] Testing strings \"%s\" and \"%s\"\012\000"
	.align	2
.LC6:
	.ascii	"[2] Testing strings \"%s\" and \"%s\"\012\000"
	.align	2
.LC7:
	.ascii	"[3] Testing strings \"%s\" and \"%s\"\012\000"
	.align	2
.LC4:
	.ascii	"abCefh\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	str	r3, [fp, #-24]
	ldr	r3, .L16+8
	str	r3, [fp, #-20]
	ldr	r2, .L16+12
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L16+16
	bl	printf
	b	.L8
.L9:
	ldr	r3, [fp, #-28]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	ft_strncmp_test
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L16+20
	bl	printf
	b	.L10
.L11:
	ldr	r2, [fp, #-28]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	ft_strncmp_test
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L11
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L16+24
	bl	printf
	b	.L12
.L13:
	ldr	r2, [fp, #-28]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	ft_strncmp_test
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L12:
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L13
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
