	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_send_request
_macio_send_request:                    ## @macio_send_request
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rax
	movl	(%rax), %ecx
	movq	_ADB_PACKET@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %ecx
	cmpl	$2, %ecx
	jl	LBB0_2
## %bb.4:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rdx,4), %ecx
	movl	%ecx, (%rax,%rdx,4)
	leaq	1(%rdx), %rsi
	movslq	(%r15), %rcx
	decq	%rcx
	movq	%rsi, %rdx
	cmpq	%rcx, %rsi
	jl	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	decl	%ecx
LBB0_6:
	movl	%ecx, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movups	%xmm0, 24(%r15)
	movq	_macio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_current_req@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_last_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, 16(%rcx)
	movq	%r15, (%rax)
	jmp	LBB0_9
LBB0_8:
	movq	_last_req@GOTPCREL(%rip), %rcx
	movq	%r15, (%rcx)
	movq	%r15, (%rax)
	movq	_adb@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_in_8
	movq	_TAR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_out_8
LBB0_9:
	movq	_macio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.10:
	addq	$8, %r15
	cmpq	$0, (%r15)
	jne	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_macio_adb_poll
	cmpq	$0, (%r15)
	je	LBB0_12
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADB_PACKET,4,2                 ## @ADB_PACKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_macio_lock,4,2                 ## @macio_lock
	.comm	_current_req,8,3                ## @current_req
	.comm	_last_req,8,3                   ## @last_req
	.comm	_adb,8,3                        ## @adb
	.comm	_TAR,4,2                        ## @TAR
	.no_dead_strip	_macio_send_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_send_request
_macio_send_request:                    ; @macio_send_request
	.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
	ldr	x8, [x0, #40]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _ADB_PACKET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ADB_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w9, [x0]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.2:
	mov	x10, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x10, lsl #2
	add	x11, x10, #1
	ldr	w10, [x9, #4]
	str	w10, [x9]
	ldrsw	x9, [x20]
	sub	x9, x9, #1
	mov	x10, x11
	cmp	x11, x9
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
	sub	w9, w9, #1
LBB0_6:
	str	w9, [x20]
	movi.2d	v0, #0000000000000000
	mov	x21, x20
	str	q0, [x21, #8]!
	stur	q0, [x20, #24]
Lloh6:
	adrp	x0, _macio_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _macio_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh8:
	adrp	x8, _current_req@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current_req@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _last_req@GOTPAGE
Lloh11:
	ldr	x8, [x8, _last_req@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x20, [x9, #16]
	str	x20, [x8]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x9, _last_req@GOTPAGE
Lloh13:
	ldr	x9, [x9, _last_req@GOTPAGEOFF]
Lloh14:
	str	x20, [x9]
	str	x20, [x8]
Lloh15:
	adrp	x8, _adb@GOTPAGE
Lloh16:
	ldr	x8, [x8, _adb@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_in_8
Lloh18:
	adrp	x8, _TAR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TAR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_out_8
LBB0_9:
Lloh21:
	adrp	x0, _macio_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _macio_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cbz	w19, LBB0_12
; %bb.10:
	ldr	x8, [x21]
	cbnz	x8, LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_macio_adb_poll
	ldr	x8, [x21]
	cbz	x8, LBB0_11
LBB0_12:
	mov	w0, #0
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ADB_PACKET,4,2                 ; @ADB_PACKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_macio_lock,4,2                 ; @macio_lock
	.comm	_current_req,8,3                ; @current_req
	.comm	_last_req,8,3                   ; @last_req
	.comm	_adb,8,3                        ; @adb
	.comm	_TAR,4,2                        ; @TAR
	.no_dead_strip	_macio_send_request
.subsections_via_symbols
