	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReverseSetup
_ReverseSetup:                          ## @ReverseSetup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_IEEE1284_MODE_ECP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ECP_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rdi), %rdi
	movl	(%rdi), %eax
	movq	_PARPORT_MODE_ECP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	_PARPORT_MODE_TRISTATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_IEEE1284_MODE_NIBBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_NIBBLE_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	_UPLOAD_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IEEE1284_EXT_LINK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%r14d, %r14d
	cmovel	%r12d, %ebx
	movl	%ebx, %esi
	callq	_parport_negotiate
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movl	$10, %edi
	callq	_mdelay
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_parport_negotiate
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	$10, %edi
	callq	_mdelay
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_parport_negotiate
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	$10, %edi
	callq	_mdelay
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_parport_negotiate
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	$10, %edi
	callq	_mdelay
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_11:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	movq	(%r15), %rcx
	movl	%r12d, 4(%rcx)
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_DBG
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE1284_MODE_ECP,4,2          ## @IEEE1284_MODE_ECP
	.comm	_ECP_TRANSFER,4,2               ## @ECP_TRANSFER
	.comm	_PARPORT_MODE_ECP,4,2           ## @PARPORT_MODE_ECP
	.comm	_PARPORT_MODE_TRISTATE,4,2      ## @PARPORT_MODE_TRISTATE
	.comm	_IEEE1284_MODE_NIBBLE,4,2       ## @IEEE1284_MODE_NIBBLE
	.comm	_NIBBLE_TRANSFER,4,2            ## @NIBBLE_TRANSFER
	.comm	_UPLOAD_FLAG,4,2                ## @UPLOAD_FLAG
	.comm	_IEEE1284_EXT_LINK,4,2          ## @IEEE1284_EXT_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to negotiate upload extensibility mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to negotiate upload mode\n"

	.no_dead_strip	_ReverseSetup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReverseSetup
_ReverseSetup:                          ; @ReverseSetup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IEEE1284_MODE_ECP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE1284_MODE_ECP@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _ECP_TRANSFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECP_TRANSFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x0, [x0]
	ldr	w9, [x0]
Lloh6:
	adrp	x10, _PARPORT_MODE_ECP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PARPORT_MODE_ECP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.1:
Lloh9:
	adrp	x10, _PARPORT_MODE_TRISTATE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PARPORT_MODE_TRISTATE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _IEEE1284_MODE_NIBBLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE1284_MODE_NIBBLE@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _NIBBLE_TRANSFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NIBBLE_TRANSFER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
LBB0_3:
Lloh18:
	adrp	x9, _UPLOAD_FLAG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _UPLOAD_FLAG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _IEEE1284_EXT_LINK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE1284_EXT_LINK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cmp	w19, #0
	csel	w21, w22, w8, eq
	mov	x1, x21
	bl	_parport_negotiate
	cbz	w0, LBB0_9
; %bb.4:
	mov	w0, #10
	bl	_mdelay
	ldr	x0, [x20]
	mov	x1, x21
	bl	_parport_negotiate
	cbz	w0, LBB0_9
; %bb.5:
	mov	w0, #10
	bl	_mdelay
	ldr	x0, [x20]
	mov	x1, x21
	bl	_parport_negotiate
	cbz	w0, LBB0_9
; %bb.6:
	mov	w0, #10
	bl	_mdelay
	ldr	x0, [x20]
	mov	x1, x21
	bl	_parport_negotiate
	cbz	w0, LBB0_9
; %bb.7:
	mov	w0, #10
	bl	_mdelay
	cbz	w19, LBB0_11
; %bb.8:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
	mov	w0, #0
	cbz	w19, LBB0_13
; %bb.10:
	ldr	x8, [x20]
	str	w22, [x8, #4]
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_DBG
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE1284_MODE_ECP,4,2          ; @IEEE1284_MODE_ECP
	.comm	_ECP_TRANSFER,4,2               ; @ECP_TRANSFER
	.comm	_PARPORT_MODE_ECP,4,2           ; @PARPORT_MODE_ECP
	.comm	_PARPORT_MODE_TRISTATE,4,2      ; @PARPORT_MODE_TRISTATE
	.comm	_IEEE1284_MODE_NIBBLE,4,2       ; @IEEE1284_MODE_NIBBLE
	.comm	_NIBBLE_TRANSFER,4,2            ; @NIBBLE_TRANSFER
	.comm	_UPLOAD_FLAG,4,2                ; @UPLOAD_FLAG
	.comm	_IEEE1284_EXT_LINK,4,2          ; @IEEE1284_EXT_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to negotiate upload extensibility mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to negotiate upload mode\n"

	.no_dead_strip	_ReverseSetup
.subsections_via_symbols
