	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_input_conflict
_resolve_input_conflict:                ## @resolve_input_conflict
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STRUCT_EQUIV_MAX_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,8), %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rdi
	callq	_find_dying_inputs
	movl	$1, %r14d
	cmpl	$2, (%rbx)
	jl	LBB0_19
## %bb.1:
	movq	8(%rbx), %rsi
	shll	$3, %r15d
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movq	16(%rbx), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movl	40(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.3:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	xorl	%r15d, %r15d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	%rcx, %r15
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	32(%rbx), %rax
	cmpl	$0, (%rax,%r15,4)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, %r15
	jae	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	subl	%r15d, %r14d
	movl	%r15d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r12d, %r13
	incl	%r12d
	cmpl	$0, 4(%rax,%r13,4)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rax,%r15,8), %rdi
	movq	(%rcx,%r13,8), %rsi
	callq	_reg_overlap_mentioned_p
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	decl	%r14d
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rax,%r13,8), %rdx
	movq	%rdx, (%rax,%r15,8)
	movq	8(%rbx), %rax
	movq	%rcx, (%rax,%r13,8)
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rax,%r13,8), %rdx
	movq	%rdx, (%rax,%r15,8)
	movq	16(%rbx), %rax
	movq	%rcx, (%rax,%r13,8)
	movl	%r15d, %r12d
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	32(%rbx), %rax
	jmp	LBB0_7
LBB0_18:
	movq	8(%rbx), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movq	16(%rbx), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_2:
	movl	$1, 24(%rbx)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$1, 24(%rbx)
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	movl	$1, %r14d
	je	LBB0_19
## %bb.15:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	je	LBB0_19
## %bb.16:
	cmpl	$1, %edx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRUCT_EQUIV_MAX_LOCAL,4,2     ## @STRUCT_EQUIV_MAX_LOCAL
	.comm	_dump_file,8,3                  ## @dump_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resolved input conflict, %d %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"swap"

L_.str.2:                               ## @.str.2
	.asciz	"swaps"

	.no_dead_strip	_resolve_input_conflict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_input_conflict
_resolve_input_conflict:                ; @resolve_input_conflict
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _STRUCT_EQUIV_MAX_LOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRUCT_EQUIV_MAX_LOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	lsl	x8, x22, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0xffffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	bl	_find_dying_inputs
	ldr	w8, [x19]
	cmp	w8, #2
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_15
LBB0_2:
	ldr	x1, [x19, #8]
	lsl	w22, w22, #3
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x1, [x19, #16]
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	ldr	w24, [x19, #40]
	cmp	w24, #0
	b.le	LBB0_14
; %bb.3:
	stur	w22, [x29, #-92]                ; 4-byte Folded Spill
	mov	x25, #0
	mov	w23, #0
	sub	w26, w24, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	cmp	x25, x24
	b.eq	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #32]
	ldr	w9, [x8, x25, lsl #2]
	cmp	w9, #0
	ccmp	x25, x26, #2, ne
	b.hs	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w27, w26, w25
	mov	x28, x25
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w28, w28, #1
	ldr	w8, [x8, w28, sxtw #2]
	cbz	w8, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	sxtw	x22, w28
	ldp	x8, x9, [x19, #8]
	ldr	x0, [x8, x25, lsl #3]
	ldr	x1, [x9, x22, lsl #3]
	bl	_reg_overlap_mentioned_p
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	subs	w27, w27, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #8]
	lsl	x9, x25, #3
	ldr	x10, [x8, x9]
	lsl	x11, x22, #3
	ldr	x12, [x8, x11]
	str	x12, [x8, x9]
	ldr	x8, [x19, #8]
	str	x10, [x8, x11]
	add	w23, w23, #1
	ldr	x8, [x19, #16]
	ldr	x10, [x8, x9]
	ldr	x12, [x8, x11]
	str	x12, [x8, x9]
	ldr	x8, [x19, #16]
	str	x10, [x8, x11]
	mov	x28, x25
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w28, w26
	b.ge	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #32]
	b	LBB0_7
LBB0_13:
	ldr	x0, [x19, #8]
	mov	x1, x20
	ldur	w20, [x29, #-92]                ; 4-byte Folded Reload
	mov	x2, x20
	bl	_memcpy
	ldr	x0, [x19, #16]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #1
	str	w0, [x19, #24]
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #1
	str	w0, [x19, #24]
Lloh13:
	adrp	x8, _dump_file@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dump_file@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_15
; %bb.18:
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh18:
	adrp	x10, l_.str.1@PAGE
Lloh19:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w23, #1
	csel	x3, x10, x9, eq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	mov	x2, x23
	bl	_fprintf
	b	LBB0_1
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STRUCT_EQUIV_MAX_LOCAL,4,2     ; @STRUCT_EQUIV_MAX_LOCAL
	.comm	_dump_file,8,3                  ; @dump_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resolved input conflict, %d %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"swap"

l_.str.2:                               ; @.str.2
	.asciz	"swaps"

	.no_dead_strip	_resolve_input_conflict
.subsections_via_symbols
