	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_cmd_data_path           ## -- Begin function wl1271_cmd_data_path
	.p2align	4, 0x90
_wl1271_cmd_data_path:                  ## @wl1271_cmd_data_path
	.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	%esi, %r12d
	movq	%rdi, %r15
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	$1, (%r14)
	movq	_CMD_DISABLE_TX@GOTPCREL(%rip), %rax
	movq	_CMD_ENABLE_TX@GOTPCREL(%rip), %rcx
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.2:
	movq	_CMD_DISABLE_RX@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_CMD_ENABLE_RX@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %r13d
	movl	(%rdx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_wl1271_cmd_send
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	testl	%r12d, %r12d
	cmovel	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_DEBUG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r12
	cmoveq	%rax, %r12
	movl	(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_wl1271_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	_DEBUG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wl1271_debug
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %ebx
	testl	%r12d, %r12d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	movl	(%r14), %edx
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
LBB0_10:
	callq	_wl1271_error
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd data path"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_ENABLE_RX,4,2              ## @CMD_ENABLE_RX
	.comm	_CMD_ENABLE_TX,4,2              ## @CMD_ENABLE_TX
	.comm	_CMD_DISABLE_RX,4,2             ## @CMD_DISABLE_RX
	.comm	_CMD_DISABLE_TX,4,2             ## @CMD_DISABLE_TX
L_.str.1:                               ## @.str.1
	.asciz	"rx %s cmd for channel %d failed"

L_.str.2:                               ## @.str.2
	.asciz	"start"

L_.str.3:                               ## @.str.3
	.asciz	"stop"

	.comm	_DEBUG_BOOT,4,2                 ## @DEBUG_BOOT
L_.str.4:                               ## @.str.4
	.asciz	"rx %s cmd channel %d"

L_.str.5:                               ## @.str.5
	.asciz	"tx %s cmd for channel %d failed"

L_.str.6:                               ## @.str.6
	.asciz	"tx %s cmd channel %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_cmd_data_path           ; -- Begin function wl1271_cmd_data_path
	.p2align	2
_wl1271_cmd_data_path:                  ; @wl1271_cmd_data_path
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	w8, #1
Lloh8:
	adrp	x9, _CMD_DISABLE_TX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMD_DISABLE_TX@GOTPAGEOFF]
	str	w8, [x19]
Lloh10:
	ldr	w23, [x9]
Lloh11:
	adrp	x8, _CMD_ENABLE_TX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_ENABLE_TX@GOTPAGEOFF]
Lloh13:
	adrp	x9, _CMD_DISABLE_RX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CMD_DISABLE_RX@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
Lloh16:
	adrp	x8, _CMD_ENABLE_RX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMD_ENABLE_RX@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #4
	mov	w4, #0
	bl	_wl1271_cmd_send
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cmp	w22, #0
	csel	w21, w23, w24, eq
Lloh18:
	adrp	x23, _DEBUG_BOOT@GOTPAGE
Lloh19:
	ldr	x23, [x23, _DEBUG_BOOT@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh20:
	adrp	x8, l_.str.2@PAGE
Lloh21:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh22:
	adrp	x9, l_.str.3@PAGE
Lloh23:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x22, x9, x8, eq
	ldr	w8, [x19]
	stp	x22, x8, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w3, #4
	mov	w4, #0
	bl	_wl1271_cmd_send
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x23]
	ldr	w8, [x19]
	stp	x22, x8, [sp]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wl1271_debug
	b	LBB0_8
LBB0_4:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
	mov	x21, x0
Lloh31:
	adrp	x8, l_.str.2@PAGE
Lloh32:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh33:
	adrp	x9, l_.str.3@PAGE
Lloh34:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w22, #0
	csel	x1, x9, x8, eq
	ldr	w2, [x19]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w2, [x19]
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
LBB0_7:
	bl	_wl1271_error
LBB0_8:
	mov	x0, x19
	bl	_kfree
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd data path"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_ENABLE_RX,4,2              ; @CMD_ENABLE_RX
	.comm	_CMD_ENABLE_TX,4,2              ; @CMD_ENABLE_TX
	.comm	_CMD_DISABLE_RX,4,2             ; @CMD_DISABLE_RX
	.comm	_CMD_DISABLE_TX,4,2             ; @CMD_DISABLE_TX
l_.str.1:                               ; @.str.1
	.asciz	"rx %s cmd for channel %d failed"

l_.str.2:                               ; @.str.2
	.asciz	"start"

l_.str.3:                               ; @.str.3
	.asciz	"stop"

	.comm	_DEBUG_BOOT,4,2                 ; @DEBUG_BOOT
l_.str.4:                               ; @.str.4
	.asciz	"rx %s cmd channel %d"

l_.str.5:                               ; @.str.5
	.asciz	"tx %s cmd for channel %d failed"

l_.str.6:                               ; @.str.6
	.asciz	"tx %s cmd channel %d"

.subsections_via_symbols
