	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ax88796_write_control
_parport_ax88796_write_control:         ## @parport_ax88796_write_control
	.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, %r12d
	movq	%rdi, %r14
	callq	_pp_to_drv
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_readb
	movq	_AX_CPR_nDOE@GOTPCREL(%rip), %rcx
	movq	_PARPORT_CONTROL_STROBE@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	movb	(%rsi), %dl
	movl	$0, %ebx
	andb	%r12b, %dl
	jne	LBB0_2
## %bb.1:
	movq	_AX_CPR_STRB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_2:
	andl	(%rcx), %eax
	movq	_PARPORT_CONTROL_AUTOFD@GOTPCREL(%rip), %rdx
	movb	(%rdx), %cl
	movl	$0, %edx
	andb	%r12b, %cl
	jne	LBB0_4
## %bb.3:
	movq	_AX_CPR_ATFD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	%eax, %ebx
	movq	_PARPORT_CONTROL_INIT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$0, %eax
	andb	%r12b, %cl
	je	LBB0_6
## %bb.5:
	movq	_AX_CPR_nINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %edx
	orl	%edx, %ebx
	movq	_PARPORT_CONTROL_SELECT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	%r12b, %al
	jne	LBB0_8
## %bb.7:
	movq	_AX_CPR_SLCTIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_8:
	orl	%edi, %ebx
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movl	4(%r15), %esi
	movl	%ebx, %edi
	callq	_writeb
	movq	%r14, %rdi
	callq	_parport_ax88796_read_control
	cmpb	%r12b, %al
	jne	LBB0_10
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_parport_ax88796_read_control
	movzbl	%r12b, %ecx
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AX_CPR_nDOE,4,2                ## @AX_CPR_nDOE
	.comm	_PARPORT_CONTROL_STROBE,1,0     ## @PARPORT_CONTROL_STROBE
	.comm	_AX_CPR_STRB,4,2                ## @AX_CPR_STRB
	.comm	_PARPORT_CONTROL_AUTOFD,1,0     ## @PARPORT_CONTROL_AUTOFD
	.comm	_AX_CPR_ATFD,4,2                ## @AX_CPR_ATFD
	.comm	_PARPORT_CONTROL_INIT,1,0       ## @PARPORT_CONTROL_INIT
	.comm	_AX_CPR_nINIT,4,2               ## @AX_CPR_nINIT
	.comm	_PARPORT_CONTROL_SELECT,1,0     ## @PARPORT_CONTROL_SELECT
	.comm	_AX_CPR_SLCTIN,4,2              ## @AX_CPR_SLCTIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write_control: ctrl=%02x, cpr=%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"write_control: read != set (%02x, %02x)\n"

	.no_dead_strip	_parport_ax88796_write_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ax88796_write_control
_parport_ax88796_write_control:         ; @parport_ax88796_write_control
	.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
	bl	_pp_to_drv
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_readb
Lloh0:
	adrp	x8, _AX_CPR_nDOE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AX_CPR_nDOE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PARPORT_CONTROL_STROBE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PARPORT_CONTROL_STROBE@GOTPAGEOFF]
	and	w8, w8, w0
	ldrb	w9, [x9]
Lloh5:
	adrp	x10, _AX_CPR_STRB@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AX_CPR_STRB@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, w10, wzr, eq
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _PARPORT_CONTROL_AUTOFD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PARPORT_CONTROL_AUTOFD@GOTPAGEOFF]
Lloh10:
	adrp	x10, _AX_CPR_ATFD@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AX_CPR_ATFD@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh12:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, w10, wzr, eq
Lloh13:
	adrp	x10, _PARPORT_CONTROL_INIT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PARPORT_CONTROL_INIT@GOTPAGEOFF]
	orr	w8, w8, w9
	ldrb	w9, [x10]
Lloh15:
	adrp	x10, _AX_CPR_nINIT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AX_CPR_nINIT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _PARPORT_CONTROL_SELECT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PARPORT_CONTROL_SELECT@GOTPAGEOFF]
Lloh20:
	adrp	x10, _AX_CPR_SLCTIN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _AX_CPR_SLCTIN@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, w10, wzr, eq
	orr	w22, w8, w9
	ldr	w0, [x21]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_dev_dbg
	ldr	w1, [x21, #4]
	mov	x0, x22
	bl	_writeb
	mov	x0, x20
	bl	_parport_ax88796_read_control
	cmp	w0, w19
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	w21, [x21]
	mov	x0, x20
	bl	_parport_ax88796_read_control
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	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
	b	_dev_err
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AX_CPR_nDOE,4,2                ; @AX_CPR_nDOE
	.comm	_PARPORT_CONTROL_STROBE,1,0     ; @PARPORT_CONTROL_STROBE
	.comm	_AX_CPR_STRB,4,2                ; @AX_CPR_STRB
	.comm	_PARPORT_CONTROL_AUTOFD,1,0     ; @PARPORT_CONTROL_AUTOFD
	.comm	_AX_CPR_ATFD,4,2                ; @AX_CPR_ATFD
	.comm	_PARPORT_CONTROL_INIT,1,0       ; @PARPORT_CONTROL_INIT
	.comm	_AX_CPR_nINIT,4,2               ; @AX_CPR_nINIT
	.comm	_PARPORT_CONTROL_SELECT,1,0     ; @PARPORT_CONTROL_SELECT
	.comm	_AX_CPR_SLCTIN,4,2              ; @AX_CPR_SLCTIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write_control: ctrl=%02x, cpr=%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"write_control: read != set (%02x, %02x)\n"

	.no_dead_strip	_parport_ax88796_write_control
.subsections_via_symbols
