	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___carl9170_exec_cmd            ## -- Begin function __carl9170_exec_cmd
	.p2align	4, 0x90
___carl9170_exec_cmd:                   ## @__carl9170_exec_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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_IS_INITIALIZED
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	_CARL9170_MAX_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-4, %eax
	xorl	%edi, %edi
	cmpl	%eax, (%r15)
	setg	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_kfree
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	cmpq	$0, 8(%rbx)
	movl	4(%rbx), %r13d
	movq	_AR9170_USB_EP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	je	LBB0_11
## %bb.10:
	callq	_usb_sndbulkpipe
	movl	(%r15), %r8d
	addl	$4, %r8d
	movq	_carl9170_usb_cmd_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	pushq	%rbx
	callq	_usb_fill_bulk_urb
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	callq	_usb_sndintpipe
	movl	(%r15), %r8d
	addl	$4, %r8d
	movq	_carl9170_usb_cmd_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	pushq	$1
	pushq	%rbx
	callq	_usb_fill_int_urb
LBB0_12:
	addq	$16, %rsp
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_URB_FREE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_14:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_usb_anchor_urb
	movq	%r12, %rdi
	callq	_usb_free_urb
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carl9170_usb_submit_cmd_urb    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CARL9170_MAX_CMD_LEN,4,2       ## @CARL9170_MAX_CMD_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AR9170_USB_EP_CMD,4,2          ## @AR9170_USB_EP_CMD
	.comm	_carl9170_usb_cmd_complete,4,2  ## @carl9170_usb_cmd_complete
	.comm	_URB_FREE_BUFFER,4,2            ## @URB_FREE_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___carl9170_exec_cmd            ; -- Begin function __carl9170_exec_cmd
	.p2align	2
___carl9170_exec_cmd:                   ; @__carl9170_exec_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_IS_INITIALIZED
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _CARL9170_MAX_CMD_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CARL9170_MAX_CMD_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #4
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	w19, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_kfree
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_usb_alloc_urb
	cbz	x0, LBB0_12
; %bb.8:
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	w23, [x20, #4]
Lloh10:
	adrp	x9, _AR9170_USB_EP_CMD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR9170_USB_EP_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	mov	x0, x23
	cbz	x8, LBB0_13
; %bb.9:
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w8, [x21]
	add	w4, w8, #4
Lloh13:
	adrp	x8, _carl9170_usb_cmd_complete@GOTPAGE
Lloh14:
	ldr	x8, [x8, _carl9170_usb_cmd_complete@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	cbz	w19, LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _URB_FREE_BUFFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _URB_FREE_BUFFER@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_11:
	mov	x0, x22
	mov	x1, x20
	bl	_usb_anchor_urb
	mov	x0, x22
	bl	_usb_free_urb
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_carl9170_usb_submit_cmd_urb
LBB0_12:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	bl	_usb_sndintpipe
	mov	x2, x0
	ldr	w8, [x21]
	add	w4, w8, #4
Lloh21:
	adrp	x8, _carl9170_usb_cmd_complete@GOTPAGE
Lloh22:
	ldr	x8, [x8, _carl9170_usb_cmd_complete@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	mov	x6, x20
	mov	w7, #1
	bl	_usb_fill_int_urb
	cbnz	w19, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CARL9170_MAX_CMD_LEN,4,2       ; @CARL9170_MAX_CMD_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AR9170_USB_EP_CMD,4,2          ; @AR9170_USB_EP_CMD
	.comm	_carl9170_usb_cmd_complete,4,2  ; @carl9170_usb_cmd_complete
	.comm	_URB_FREE_BUFFER,4,2            ; @URB_FREE_BUFFER
.subsections_via_symbols
