	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_cmd_send                ## -- Begin function wl1251_cmd_send
	.p2align	4, 0x90
_wl1251_cmd_send:                       ## @wl1251_cmd_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	%esi, 8(%rdx)
	movq	$0, (%rdx)
	xorl	%edi, %edi
	testb	$3, %r15b
	setne	%dil
	callq	_WARN_ON
	movl	(%r14), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_wl1251_mem_write
	movq	_ACX_REG_INTERRUPT_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTR_TRIG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wl1251_reg_write32
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_WL1251_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_ACX_REG_INTERRUPT_NO_CLEAR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wl1251_reg_read32
	movq	_WL1251_ACX_INTR_CMD_COMPLETE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	testl	%eax, %edx
	jne	LBB0_5
## %bb.1:
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wl1251_reg_read32
	movl	(%r13), %edx
	testl	%eax, %edx
	je	LBB0_2
LBB0_5:
	movq	_ACX_REG_INTERRUPT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wl1251_reg_write32
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_wl1251_error
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACX_REG_INTERRUPT_TRIG,4,2     ## @ACX_REG_INTERRUPT_TRIG
	.comm	_INTR_TRIG_CMD,4,2              ## @INTR_TRIG_CMD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_WL1251_COMMAND_TIMEOUT,4,2     ## @WL1251_COMMAND_TIMEOUT
	.comm	_ACX_REG_INTERRUPT_NO_CLEAR,4,2 ## @ACX_REG_INTERRUPT_NO_CLEAR
	.comm	_WL1251_ACX_INTR_CMD_COMPLETE,4,2 ## @WL1251_ACX_INTR_CMD_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command complete timeout"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ACX_REG_INTERRUPT_ACK,4,2      ## @ACX_REG_INTERRUPT_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_cmd_send                ; -- Begin function wl1251_cmd_send
	.p2align	2
_wl1251_cmd_send:                       ; @wl1251_cmd_send
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	str	w1, [x2, #8]
	str	xzr, [x2]
	tst	x3, #0x3
	cset	w0, ne
	bl	_WARN_ON
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_wl1251_mem_write
Lloh0:
	adrp	x8, _ACX_REG_INTERRUPT_TRIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACX_REG_INTERRUPT_TRIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INTR_TRIG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTR_TRIG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wl1251_reg_write32
Lloh6:
	adrp	x21, _jiffies@GOTPAGE
Lloh7:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x24, [x21]
Lloh8:
	adrp	x8, _WL1251_COMMAND_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL1251_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x20, x0
Lloh11:
	adrp	x22, _ACX_REG_INTERRUPT_NO_CLEAR@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ACX_REG_INTERRUPT_NO_CLEAR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wl1251_reg_read32
Lloh13:
	adrp	x23, _WL1251_ACX_INTR_CMD_COMPLETE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _WL1251_ACX_INTR_CMD_COMPLETE@GOTPAGEOFF]
	ldr	w2, [x23]
	tst	w2, w0
	b.ne	LBB0_4
; %bb.1:
	add	x20, x20, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wl1251_reg_read32
	ldr	w2, [x23]
	tst	w2, w0
	b.eq	LBB0_2
LBB0_4:
Lloh15:
	adrp	x8, _ACX_REG_INTERRUPT_ACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACX_REG_INTERRUPT_ACK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wl1251_reg_write32
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1251_error
Lloh20:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ACX_REG_INTERRUPT_TRIG,4,2     ; @ACX_REG_INTERRUPT_TRIG
	.comm	_INTR_TRIG_CMD,4,2              ; @INTR_TRIG_CMD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_WL1251_COMMAND_TIMEOUT,4,2     ; @WL1251_COMMAND_TIMEOUT
	.comm	_ACX_REG_INTERRUPT_NO_CLEAR,4,2 ; @ACX_REG_INTERRUPT_NO_CLEAR
	.comm	_WL1251_ACX_INTR_CMD_COMPLETE,4,2 ; @WL1251_ACX_INTR_CMD_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command complete timeout"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ACX_REG_INTERRUPT_ACK,4,2      ; @ACX_REG_INTERRUPT_ACK
.subsections_via_symbols
