	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wlcore_cmd_send
___wlcore_cmd_send:                     ## @__wlcore_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
	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	%rdi, %r12
	movq	(%rdi), %rax
	movq	_WLCORE_STATE_RESTARTING@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%al
	movq	_CMD_STOP_FWLOGGER@GOTPCREL(%rip), %rsi
	cmpq	%rbx, (%rsi)
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r14
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$16, %r13
	setb	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movl	%eax, 8(%r14)
	movq	$0, (%r14)
	xorl	%edi, %edi
	testb	$3, %r13b
	setne	%dil
	callq	_WARN_ON
	movq	_WL1271_FLAG_IN_ELP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_WARN_ON
	movl	8(%r12), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_wlcore_write
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:
	movq	16(%r12), %rax
	movl	8(%r12), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WL1271_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	movq	_REG_INTERRUPT_NO_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_wlcore_read_reg
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	addq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	$1, %r13d
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_msleep
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_REG_INTERRUPT_NO_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-44(%rbp), %rdx
	callq	_wlcore_read_reg
	movl	%eax, %ebx
	incq	%r13
	testl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %r15
	movq	%r12, %r14
	js	LBB0_4
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_WL1271_ACX_INTR_CMD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %r12
	movq	%r15, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rsi, %r15
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_WL1271_CMD_FAST_POLL_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jge	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$10, %edi
	callq	_udelay
	jmp	LBB0_10
LBB0_18:
	testq	%r15, %r15
	movl	$16, %ecx
	cmovneq	%r15, %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_wlcore_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.19:
	movq	(%r14), %rdi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movq	_REG_INTERRUPT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL1271_ACX_INTR_CMD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_wlcore_write_reg
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	jmp	LBB0_4
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_error
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_STATE_RESTARTING,8,3    ## @WLCORE_STATE_RESTARTING
	.comm	_CMD_STOP_FWLOGGER,8,3          ## @CMD_STOP_FWLOGGER
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WL1271_FLAG_IN_ELP,4,2         ## @WL1271_FLAG_IN_ELP
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_WL1271_COMMAND_TIMEOUT,4,2     ## @WL1271_COMMAND_TIMEOUT
	.comm	_REG_INTERRUPT_NO_CLEAR,4,2     ## @REG_INTERRUPT_NO_CLEAR
	.comm	_WL1271_ACX_INTR_CMD_COMPLETE,4,2 ## @WL1271_ACX_INTR_CMD_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command complete timeout"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_WL1271_CMD_FAST_POLL_COUNT,8,3 ## @WL1271_CMD_FAST_POLL_COUNT
	.comm	_REG_INTERRUPT_ACK,4,2          ## @REG_INTERRUPT_ACK
	.no_dead_strip	___wlcore_cmd_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wlcore_cmd_send
___wlcore_cmd_send:                     ; @__wlcore_cmd_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WLCORE_STATE_RESTARTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLCORE_STATE_RESTARTING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x8, _CMD_STOP_FWLOGGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_STOP_FWLOGGER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, x1, #4, eq
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	x22, #16
	cset	w0, lo
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x0, x23
	bl	_cpu_to_le16
	str	w0, [x20, #8]
	str	xzr, [x20]
	tst	x22, #0x3
	cset	w0, ne
	bl	_WARN_ON
Lloh8:
	adrp	x8, _WL1271_FLAG_IN_ELP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL1271_FLAG_IN_ELP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	bl	_WARN_ON
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	mov	w4, #0
	bl	_wlcore_write
	tbnz	w0, #31, LBB0_4
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	blr	x8
	tbnz	w0, #31, LBB0_4
; %bb.7:
Lloh11:
	adrp	x24, _jiffies@GOTPAGE
Lloh12:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x23, [x24]
Lloh13:
	adrp	x8, _WL1271_COMMAND_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WL1271_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x22, x0
Lloh16:
	adrp	x25, _REG_INTERRUPT_NO_CLEAR@GOTPAGE
Lloh17:
	ldr	x25, [x25, _REG_INTERRUPT_NO_CLEAR@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_wlcore_read_reg
	tbnz	w0, #31, LBB0_4
; %bb.8:
	add	x22, x22, x23
	mov	w26, #1
Lloh18:
	adrp	x23, _WL1271_ACX_INTR_CMD_COMPLETE@GOTPAGE
Lloh19:
	ldr	x23, [x23, _WL1271_ACX_INTR_CMD_COMPLETE@GOTPAGEOFF]
Lloh20:
	adrp	x27, _WL1271_CMD_FAST_POLL_COUNT@GOTPAGE
Lloh21:
	ldr	x27, [x27, _WL1271_CMD_FAST_POLL_COUNT@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
	bl	_msleep
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_wlcore_read_reg
	add	x26, x26, #1
	tbnz	w0, #31, LBB0_4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x24]
	mov	x1, x22
	bl	_time_after
	cbnz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x27]
	cmp	x26, x8
	b.ge	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #10
	bl	_udelay
	b	LBB0_10
LBB0_15:
	mov	w8, #16
	cmp	x21, #0
	csel	x3, x8, x21, eq
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	mov	w4, #0
	bl	_wlcore_read
	tbnz	w0, #31, LBB0_4
; %bb.16:
	ldr	x0, [x20]
	bl	_le16_to_cpu
	mov	x20, x0
Lloh22:
	adrp	x8, _REG_INTERRUPT_ACK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_INTERRUPT_ACK@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_wlcore_write_reg
	cmp	w0, #0
	csel	w0, w0, w20, lt
	b	LBB0_4
LBB0_17:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_error
Lloh27:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_STATE_RESTARTING,8,3    ; @WLCORE_STATE_RESTARTING
	.comm	_CMD_STOP_FWLOGGER,8,3          ; @CMD_STOP_FWLOGGER
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WL1271_FLAG_IN_ELP,4,2         ; @WL1271_FLAG_IN_ELP
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_WL1271_COMMAND_TIMEOUT,4,2     ; @WL1271_COMMAND_TIMEOUT
	.comm	_REG_INTERRUPT_NO_CLEAR,4,2     ; @REG_INTERRUPT_NO_CLEAR
	.comm	_WL1271_ACX_INTR_CMD_COMPLETE,4,2 ; @WL1271_ACX_INTR_CMD_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command complete timeout"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_WL1271_CMD_FAST_POLL_COUNT,8,3 ; @WL1271_CMD_FAST_POLL_COUNT
	.comm	_REG_INTERRUPT_ACK,4,2          ; @REG_INTERRUPT_ACK
	.no_dead_strip	___wlcore_cmd_send
.subsections_via_symbols
