	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scx200_acb_poll
_scx200_acb_poll:                       ## @scx200_acb_poll
	.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	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_POLL_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%rcx), %r15
	movq	_ACBST@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inb
	movl	%eax, %ebx
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_outb
	movq	%r12, %rdi
	movq	_ACBST_SDAST@GOTPCREL(%rip), %r12
	movq	_ACBST_BER@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	(%r12), %eax
	movq	_ACBST_NEGACK@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	testl	%ebx, %eax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	xorl	%eax, %eax
	callq	_cond_resched
	movq	_ACBST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	movl	%eax, %ebx
	movq	_ACBST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_outb
	movl	(%r14), %eax
	orl	(%r12), %eax
	orl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_5:
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scx200_acb_machine             ## TAILCALL
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	16(%rbx), %rdi
	movq	_scx200_acb_state_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_state_idle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	$1, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_POLL_TIMEOUT,8,3               ## @POLL_TIMEOUT
	.comm	_ACBST,4,2                      ## @ACBST
	.comm	_ACBST_SDAST,4,2                ## @ACBST_SDAST
	.comm	_ACBST_BER,4,2                  ## @ACBST_BER
	.comm	_ACBST_NEGACK,4,2               ## @ACBST_NEGACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout in state %s\n"

	.comm	_scx200_acb_state_name,8,3      ## @scx200_acb_state_name
	.comm	_state_idle,8,3                 ## @state_idle
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_scx200_acb_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scx200_acb_poll
_scx200_acb_poll:                       ; @scx200_acb_poll
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh2:
	adrp	x8, _POLL_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POLL_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	x27, [x8]
Lloh5:
	adrp	x23, _ACBST@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ACBST@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_inb
	mov	x20, x0
	ldr	w1, [x23]
	mov	w0, #0
	bl	_outb
Lloh7:
	adrp	x24, _ACBST_SDAST@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ACBST_SDAST@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh9:
	adrp	x25, _ACBST_BER@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ACBST_BER@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh11:
	adrp	x26, _ACBST_NEGACK@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ACBST_NEGACK@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
	tst	w8, w20
	b.ne	LBB0_4
; %bb.1:
	add	x21, x27, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	bl	_cond_resched
	ldr	w0, [x23]
	bl	_inb
	mov	x20, x0
	ldr	w1, [x23]
	mov	w0, #0
	bl	_outb
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_2
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	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
	b	_scx200_acb_machine
LBB0_5:
	add	x0, x19, #16
Lloh13:
	adrp	x8, _scx200_acb_state_name@GOTPAGE
Lloh14:
	ldr	x8, [x8, _scx200_acb_state_name@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _state_idle@GOTPAGE
Lloh19:
	ldr	x8, [x8, _state_idle@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _EIO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
	str	x8, [x19]
Lloh23:
	ldr	w8, [x9]
	neg	w8, w8
	mov	w9, #1
	stp	w9, w8, [x19, #8]
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_POLL_TIMEOUT,8,3               ; @POLL_TIMEOUT
	.comm	_ACBST,4,2                      ; @ACBST
	.comm	_ACBST_SDAST,4,2                ; @ACBST_SDAST
	.comm	_ACBST_BER,4,2                  ; @ACBST_BER
	.comm	_ACBST_NEGACK,4,2               ; @ACBST_NEGACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout in state %s\n"

	.comm	_scx200_acb_state_name,8,3      ; @scx200_acb_state_name
	.comm	_state_idle,8,3                 ; @state_idle
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_scx200_acb_poll
.subsections_via_symbols
