	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_submit_rx_cmd
_ar5523_submit_rx_cmd:                  ## @ar5523_submit_rx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	12(%rdi), %ebx
	movl	%ebx, %edi
	callq	_ar5523_cmd_rx_pipe
	movl	8(%r14), %ecx
	movq	_AR5523_MAX_RXCMDSZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_ar5523_cmd_rx_cb@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	orl	%eax, (%rdi)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ar5523_err
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5523_MAX_RXCMDSZ,4,2         ## @AR5523_MAX_RXCMDSZ
	.comm	_ar5523_cmd_rx_cb,4,2           ## @ar5523_cmd_rx_cb
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d when submitting rx urb\n"

	.no_dead_strip	_ar5523_submit_rx_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_submit_rx_cmd
_ar5523_submit_rx_cmd:                  ; @ar5523_submit_rx_cmd
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w21, [x0, #12]
	mov	x0, x21
	bl	_ar5523_cmd_rx_pipe
	mov	x2, x0
	ldr	w3, [x19, #8]
Lloh0:
	adrp	x8, _AR5523_MAX_RXCMDSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5523_MAX_RXCMDSZ@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _ar5523_cmd_rx_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ar5523_cmd_rx_cb@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x6, x19
	bl	_usb_fill_bulk_urb
Lloh6:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x0, [x19]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w20, w8
	b.eq	LBB0_3
; %bb.2:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ar5523_err
LBB0_3:
	mov	x0, x20
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5523_MAX_RXCMDSZ,4,2         ; @AR5523_MAX_RXCMDSZ
	.comm	_ar5523_cmd_rx_cb,4,2           ; @ar5523_cmd_rx_cb
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d when submitting rx urb\n"

	.no_dead_strip	_ar5523_submit_rx_cmd
.subsections_via_symbols
