	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macii_autopoll
_macii_autopoll:                        ## @macii_autopoll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_autopoll_devs@GOTPCREL(%rip), %r14
	andl	$65534, %edi                    ## imm = 0xFFFE
	movl	%edi, (%r14)
	je	LBB0_1
## %bb.2:
	callq	_local_irq_save
	movq	_current_req@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_ADBREQ_NOSEND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_ffs
	leaq	-1(%rax), %rdi
	xorl	%esi, %esi
	callq	_ADB_READREG
	leaq	_macii_autopoll.req(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	callq	_adb_request
	movq	%r14, %rdi
	callq	_macii_write
	movl	%eax, %ebx
LBB0_4:
	callq	_local_irq_restore
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_macii_autopoll.req,4,2 ## @macii_autopoll.req
	.comm	_autopoll_devs,4,2              ## @autopoll_devs
	.comm	_current_req,8,3                ## @current_req
	.comm	_ADBREQ_NOSEND,4,2              ## @ADBREQ_NOSEND
	.no_dead_strip	_macii_autopoll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macii_autopoll
_macii_autopoll:                        ; @macii_autopoll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _autopoll_devs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _autopoll_devs@GOTPAGEOFF]
	ands	w8, w0, #0xfffe
	str	w8, [x20]
	b.eq	LBB0_3
; %bb.1:
	bl	_local_irq_save
Lloh2:
	adrp	x8, _current_req@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current_req@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w19, #0
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ADBREQ_NOSEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADBREQ_NOSEND@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	ldr	w0, [x20]
	bl	_ffs
	sub	x0, x0, #1
	mov	w1, #0
	bl	_ADB_READREG
	mov	x4, x0
Lloh8:
	adrp	x20, _macii_autopoll.req@PAGE
Lloh9:
	add	x20, x20, _macii_autopoll.req@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	w3, #1
	bl	_adb_request
	mov	x0, x20
	bl	_macii_write
	mov	x19, x0
LBB0_5:
	bl	_local_irq_restore
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_macii_autopoll.req,4,2 ; @macii_autopoll.req
	.comm	_autopoll_devs,4,2              ; @autopoll_devs
	.comm	_current_req,8,3                ; @current_req
	.comm	_ADBREQ_NOSEND,4,2              ; @ADBREQ_NOSEND
	.no_dead_strip	_macii_autopoll
.subsections_via_symbols
