	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arpc_send
_arpc_send:                             ## @arpc_send
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_GB_APB_REQUEST_ARPC_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	(%rbx), %r13
	movl	4(%r13), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	_ES2_USB_CTRL_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r13
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	cmpl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%ebx, %ebx
	cmovlel	%ebx, %r12d
LBB0_2:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_APB_REQUEST_ARPC_RUN,4,2    ## @GB_APB_REQUEST_ARPC_RUN
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_ES2_USB_CTRL_TIMEOUT,4,2       ## @ES2_USB_CTRL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to send ARPC request %d: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_arpc_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arpc_send
_arpc_send:                             ; @arpc_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x21, x0
Lloh0:
	adrp	x8, _GB_APB_REQUEST_ARPC_RUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_APB_REQUEST_ARPC_RUN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w23, w8, w9
	ldr	x24, [x20]
	ldr	w0, [x24, #4]
	bl	_le16_to_cpu
	mov	x7, x0
Lloh12:
	adrp	x8, _ES2_USB_CTRL_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ES2_USB_CTRL_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	mov	x6, x24
	bl	_usb_control_msg
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	cmp	w21, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_dev_err
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w0, w21, w8, le
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_APB_REQUEST_ARPC_RUN,4,2    ; @GB_APB_REQUEST_ARPC_RUN
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_ES2_USB_CTRL_TIMEOUT,4,2       ; @ES2_USB_CTRL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to send ARPC request %d: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_arpc_send
.subsections_via_symbols
