	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_8dev_send_cmd
_usb_8dev_send_cmd:                     ## @usb_8dev_send_cmd
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movq	_USB_8DEV_CMD_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi)
	movq	_USB_8DEV_CMD_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rsi)
	callq	_mutex_lock
	movq	8(%r13), %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	8(%r13), %rsi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_usb_8dev_send_cmd_msg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%r13), %rsi
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_usb_8dev_wait_cmd_msg
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	_USB_8DEV_CMD_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	8(%r14), %rax
	movq	_USB_8DEV_CMD_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	cmpl	$16, -44(%rbp)
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 16(%r14)
	je	LBB0_10
LBB0_9:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_netdev_err
LBB0_10:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_8DEV_CMD_START,8,3         ## @USB_8DEV_CMD_START
	.comm	_USB_8DEV_CMD_END,8,3           ## @USB_8DEV_CMD_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending command message failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"no command message answer\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_usb_8dev_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_8dev_send_cmd
_usb_8dev_send_cmd:                     ; @usb_8dev_send_cmd
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x24, _USB_8DEV_CMD_START@GOTPAGE
Lloh1:
	ldr	x24, [x24, _USB_8DEV_CMD_START@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x1]
Lloh2:
	adrp	x23, _USB_8DEV_CMD_END@GOTPAGE
Lloh3:
	ldr	x23, [x23, _USB_8DEV_CMD_END@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x1, #8]
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #24
	bl	_usb_8dev_send_cmd_msg
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x1, [x19, #8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #24
	bl	_usb_8dev_wait_cmd_msg
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x1, [x19, #8]
	mov	x0, x20
	mov	w2, #24
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	ldr	w10, [sp, #12]
	cmp	x8, x9
	ccmp	w10, #16, #0, eq
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
LBB0_5:
Lloh4:
	adrp	x8, _EPROTO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_6:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x22
	bl	_netdev_err
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_8DEV_CMD_START,8,3         ; @USB_8DEV_CMD_START
	.comm	_USB_8DEV_CMD_END,8,3           ; @USB_8DEV_CMD_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending command message failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"no command message answer\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_usb_8dev_send_cmd
.subsections_via_symbols
