	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_get_hw_spec_sta
_mwl8k_cmd_get_hw_spec_sta:             ## @mwl8k_cmd_get_hw_spec_sta
	.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), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_MWL8K_CMD_GET_HW_SPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%r15, %r12
	addq	$24, %r12
	movq	%rax, 32(%r15)
	movl	$88, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	movl	16(%r15), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 80(%r15)
	movq	32(%r13), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 72(%r15)
	movq	%r13, %rdi
	callq	_mwl8k_tx_queues
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	movq	%r13, %rdi
	callq	_mwl8k_tx_queues
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_cpu_to_le32
	movq	56(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	%r13, %rdi
	callq	_mwl8k_tx_queues
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%r15)
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mwl8k_post_cmd
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_SET_IEEE80211_PERM_ADDR
	movl	12(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 20(%r13)
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 16(%r13)
	movl	4(%r15), %eax
	movl	%eax, 12(%r13)
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mwl8k_set_caps
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 4(%r13)
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	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_GET_HW_SPEC,4,2      ## @MWL8K_CMD_GET_HW_SPEC
	.comm	_MWL8K_TX_DESCS,4,2             ## @MWL8K_TX_DESCS
	.comm	_MWL8K_RX_DESCS,4,2             ## @MWL8K_RX_DESCS
	.no_dead_strip	_mwl8k_cmd_get_hw_spec_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mwl8k_cmd_get_hw_spec_sta
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mwl8k_cmd_get_hw_spec_sta:             ; @mwl8k_cmd_get_hw_spec_sta
	.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, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_GET_HW_SPEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_GET_HW_SPEC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #32]
	mov	w0, #88
	bl	_cpu_to_le16
	mov	x22, x21
	str	x0, [x22, #24]!
	ldur	w0, [x22, #-8]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19]
	bl	_cpu_to_le32
	str	x0, [x22, #56]
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x22, #48]
	mov	x0, x19
	bl	_mwl8k_tx_queues
	bl	_cpu_to_le32
	str	x0, [x22, #40]
	mov	x0, x19
	bl	_mwl8k_tx_queues
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x23, lsl #2]
	bl	_cpu_to_le32
	ldr	x8, [x21, #56]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	mov	x0, x19
	bl	_mwl8k_tx_queues
	cmp	x23, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
Lloh6:
	adrp	x8, _MWL8K_TX_DESCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWL8K_TX_DESCS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x21, #48]
Lloh9:
	adrp	x8, _MWL8K_RX_DESCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWL8K_RX_DESCS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x21, #40]
	mov	x0, x20
	mov	x1, x22
	bl	_mwl8k_post_cmd
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	_SET_IEEE80211_PERM_ADDR
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
	str	w0, [x19, #20]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	ldp	w8, w9, [x21]
	stp	w9, w0, [x19, #12]
	mov	x0, x8
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_mwl8k_set_caps
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
LBB0_6:
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_GET_HW_SPEC,4,2      ; @MWL8K_CMD_GET_HW_SPEC
	.comm	_MWL8K_TX_DESCS,4,2             ; @MWL8K_TX_DESCS
	.comm	_MWL8K_RX_DESCS,4,2             ; @MWL8K_RX_DESCS
	.no_dead_strip	_mwl8k_cmd_get_hw_spec_sta
.subsections_via_symbols
