	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function duplicate
_duplicate:                             ## @duplicate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %esi
	subl	%esi, %eax
	movl	(%rbx), %ecx
	subl	4(%rbx), %ecx
	xorl	%r14d, %r14d
	cmpl	%ecx, %eax
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_skip
	movl	4(%rbx), %esi
	movl	$1, %r14d
	movl	$1, %edi
	xorl	%edx, %edx
	callq	_skip
	movl	(%r15), %eax
	cmpl	4(%r15), %eax
	jle	LBB0_11
## %bb.2:
	xorl	%edx, %edx
	movq	_fp@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %r13d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_getc
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_getc
	movl	%eax, %r14d
	cmpl	$-1, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$-1, %r14d
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r14d, %ebx
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	1(%r13), %eax
	cmpl	$10, %ebx
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movl	(%r15), %ecx
	subl	4(%r15), %ecx
	cmpl	%ecx, %edx
	jl	LBB0_3
## %bb.10:
	incl	%r13d
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_13:
	incl	%r13d
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r13d, %edi
	callq	_repos
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fp,8,3                         ## @fp
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"logic error"

	.no_dead_strip	_duplicate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function duplicate
_duplicate:                             ; @duplicate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldp	w8, w1, [x0]
	sub	w8, w8, w1
	ldp	w9, w10, [x20]
	sub	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	w0, #0
	mov	x2, #0
	bl	_skip
	ldr	w1, [x20, #4]
	mov	w20, #1
	mov	w0, #1
	mov	x2, #0
	bl	_skip
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.le	LBB0_10
; %bb.2:
	mov	w23, #0
	mov	w8, #0
Lloh0:
	adrp	x24, _fp@GOTPAGE
Lloh1:
	ldr	x24, [x24, _fp@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EXIT_FAILURE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EXIT_FAILURE@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_getc
	mov	x21, x0
	ldr	x8, [x24]
	ldr	w0, [x8, #4]
	bl	_getc
	mov	x22, x0
	cmn	w21, #1
	ccmn	w0, #1, #4, ne
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	mov	x1, x20
	bl	_errx
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w22
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w26, #1
	cmp	w21, #10
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldp	w9, w10, [x19]
	sub	w9, w9, w10
	cmp	w23, w9
	b.lt	LBB0_3
; %bb.8:
	add	w0, w26, #1
	mov	w20, #1
	b	LBB0_12
LBB0_9:
	mov	w20, #0
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w20, #0
	add	w0, w26, #1
LBB0_12:
	bl	_repos
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_fp,8,3                         ; @fp
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"logic error"

	.no_dead_strip	_duplicate
.subsections_via_symbols
