	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_set_hw_spec
_mwl8k_cmd_set_hw_spec:                 ## @mwl8k_cmd_set_hw_spec
	.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	%rdi, %r14
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_MWL8K_CMD_SET_HW_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movl	$72, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movl	(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r15)
	movq	%r12, %rdi
	callq	_mwl8k_tx_queues
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%r15)
	movq	%r12, %rdi
	callq	_mwl8k_tx_queues
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movl	$-1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_mwl8k_tx_queues
	addl	%r13d, %eax
	movq	8(%r12), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_cpu_to_le32
	movq	40(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	%r12, %rdi
	callq	_mwl8k_tx_queues
	cltq
	decl	%r13d
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT@GOTPCREL(%rip), %rax
	movq	_MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r15)
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r15)
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mwl8k_post_cmd
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWL8K_CMD_SET_HW_SPEC,4,2      ## @MWL8K_CMD_SET_HW_SPEC
	.comm	_MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT,4,2 ## @MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT
	.comm	_MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP,4,2 ## @MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP
	.comm	_MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON,4,2 ## @MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON
	.comm	_MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY,4,2 ## @MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY
	.comm	_MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR,4,2 ## @MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR
	.comm	_MWL8K_TX_DESCS,4,2             ## @MWL8K_TX_DESCS
	.comm	_MWL8K_RX_DESCS,4,2             ## @MWL8K_RX_DESCS
	.no_dead_strip	_mwl8k_cmd_set_hw_spec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_cmd_set_hw_spec
_mwl8k_cmd_set_hw_spec:                 ; @mwl8k_cmd_set_hw_spec
	.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, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_SET_HW_SPEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_SET_HW_SPEC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	mov	w0, #72
	bl	_cpu_to_le16
	str	x0, [x20]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	x0, [x20, #64]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #56]
	mov	x0, x21
	bl	_mwl8k_tx_queues
	bl	_cpu_to_le32
	str	x0, [x20, #48]
	mov	x0, x21
	bl	_mwl8k_tx_queues
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
	mov	w23, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_mwl8k_tx_queues
	add	w8, w0, w23
	ldr	x9, [x21, #8]
	ldr	w0, [x9, w8, sxtw #2]
	bl	_cpu_to_le32
	ldr	x8, [x20, #40]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	mov	x0, x21
	bl	_mwl8k_tx_queues
	sub	w23, w23, #1
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
Lloh6:
	adrp	x8, _MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	str	x0, [x20, #32]
Lloh21:
	adrp	x8, _MWL8K_TX_DESCS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MWL8K_TX_DESCS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #24]
Lloh24:
	adrp	x8, _MWL8K_RX_DESCS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MWL8K_RX_DESCS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_mwl8k_post_cmd
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	b	LBB0_6
LBB0_5:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_SET_HW_SPEC,4,2      ; @MWL8K_CMD_SET_HW_SPEC
	.comm	_MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT,4,2 ; @MWL8K_SET_HW_SPEC_FLAG_HOST_DECR_MGMT
	.comm	_MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP,4,2 ; @MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_PROBERESP
	.comm	_MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON,4,2 ; @MWL8K_SET_HW_SPEC_FLAG_HOSTFORM_BEACON
	.comm	_MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY,4,2 ; @MWL8K_SET_HW_SPEC_FLAG_ENABLE_LIFE_TIME_EXPIRY
	.comm	_MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR,4,2 ; @MWL8K_SET_HW_SPEC_FLAG_GENERATE_CCMP_HDR
	.comm	_MWL8K_TX_DESCS,4,2             ; @MWL8K_TX_DESCS
	.comm	_MWL8K_RX_DESCS,4,2             ; @MWL8K_RX_DESCS
	.no_dead_strip	_mwl8k_cmd_set_hw_spec
.subsections_via_symbols
