	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macii_queue_poll
_macii_queue_poll:                      ## @macii_queue_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_autopoll_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_command_byte@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrb	$4, %cl
	movl	$-2, %edx
	shll	%cl, %edx
	andl	%eax, %edx
	cmovel	%eax, %edx
	bsfl	%edx, %edi
	movq	_ADBREQ_NOSEND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%esi, %esi
	callq	_ADB_READREG
	leaq	_macii_queue_poll.req(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%eax, %r8d
	callq	_adb_request
	xorps	%xmm0, %xmm0
	movups	%xmm0, _macii_queue_poll.req+8(%rip)
	movq	$0, _macii_queue_poll.req+24(%rip)
	movq	_current_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, _macii_queue_poll.req(%rip)
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_current_req@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_last_req@GOTPCREL(%rip), %rax
LBB0_3:
	movq	%r14, (%rax)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_macii_queue_poll.req,32,3 ## @macii_queue_poll.req
	.comm	_autopoll_devs,4,2              ## @autopoll_devs
	.comm	_command_byte,4,2               ## @command_byte
	.comm	_ADBREQ_NOSEND,4,2              ## @ADBREQ_NOSEND
	.comm	_current_req,8,3                ## @current_req
	.comm	_last_req,8,3                   ## @last_req
	.no_dead_strip	_macii_queue_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macii_queue_poll
_macii_queue_poll:                      ; @macii_queue_poll
	.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	x8, _autopoll_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _autopoll_devs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _command_byte@GOTPAGE
Lloh4:
	ldr	x9, [x9, _command_byte@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ubfx	w9, w9, #4, #4
	mov	w10, #-2
	lsl	w9, w10, w9
	ands	w9, w9, w8
	rbit	w9, w9
	clz	w9, w9
	rbit	w8, w8
	clz	w8, w8
	csel	w0, w8, w9, eq
Lloh6:
	adrp	x8, _ADBREQ_NOSEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADBREQ_NOSEND@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	w1, #0
	bl	_ADB_READREG
	mov	x4, x0
Lloh9:
	adrp	x19, _macii_queue_poll.req@PAGE
Lloh10:
	add	x19, x19, _macii_queue_poll.req@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_adb_request
	stp	xzr, xzr, [x19, #16]
Lloh11:
	adrp	x8, _current_req@GOTPAGE
Lloh12:
	ldr	x8, [x8, _current_req@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	x9, xzr, [x19]
	str	x19, [x8]
	cbnz	x9, LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _last_req@GOTPAGE
Lloh14:
	ldr	x8, [x8, _last_req@GOTPAGEOFF]
Lloh15:
	str	x19, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_macii_queue_poll.req,32,3 ; @macii_queue_poll.req
	.comm	_autopoll_devs,4,2              ; @autopoll_devs
	.comm	_command_byte,4,2               ; @command_byte
	.comm	_ADBREQ_NOSEND,4,2              ; @ADBREQ_NOSEND
	.comm	_current_req,8,3                ; @current_req
	.comm	_last_req,8,3                   ; @last_req
	.no_dead_strip	_macii_queue_poll
.subsections_via_symbols
