	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_set_new_stn_add
_mwl8k_cmd_set_new_stn_add:             ## @mwl8k_cmd_set_new_stn_add
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rbx
	movq	_MWL8K_CMD_SET_NEW_STN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r12)
	movl	$80, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r12)
	movl	(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 72(%r12)
	movl	64(%r12), %edi
	movl	48(%r13), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r12)
	movq	_MWL8K_STA_ACTION_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%r12)
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	8(%r13), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movl	(%rax,%rcx,4), %edi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_5:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	shll	$5, %edi
LBB0_6:
	addq	$8, %r12
	callq	_cpu_to_le32
	movl	%eax, 40(%rbx)
	cmpq	$0, 40(%r13)
	je	LBB0_8
## %bb.7:
	movq	32(%r13), %rax
	movl	(%rax), %ecx
	movq	32(%rbx), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	12(%rax), %eax
	movl	%eax, 12(%rdx)
	movl	16(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	20(%r13), %eax
	movl	24(%r13), %ecx
	andl	$3, %eax
	andl	$7, %ecx
	leal	(%rax,%rcx,4), %eax
	movl	%eax, (%rbx)
	movl	$1, 4(%rbx)
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_mwl8k_post_pervif_cmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %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_NEW_STN,4,2      ## @MWL8K_CMD_SET_NEW_STN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MWL8K_STA_ACTION_ADD,4,2       ## @MWL8K_STA_ACTION_ADD
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_mwl8k_cmd_set_new_stn_add
.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_new_stn_add
_mwl8k_cmd_set_new_stn_add:             ; @mwl8k_cmd_set_new_stn_add
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_SET_NEW_STN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_SET_NEW_STN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #16]
	mov	w0, #80
	bl	_cpu_to_le16
	mov	x23, x21
	str	x0, [x23, #8]!
	ldr	w0, [x22]
	bl	_cpu_to_le16
	str	x0, [x23, #64]
	ldr	w0, [x23, #56]
	ldr	w1, [x22, #48]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x22]
	bl	_cpu_to_le16
	str	x0, [x23, #48]
Lloh9:
	adrp	x8, _MWL8K_STA_ACTION_ADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWL8K_STA_ACTION_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #40]
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh12:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x8]
	ldr	x8, [x22, #8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x8, x9, lsl #2]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh18:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w0, w8, #5
LBB0_5:
	bl	_cpu_to_le32
	str	w0, [x21, #40]
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x22, #32]
	ldr	w9, [x8]
	ldr	x10, [x21, #32]
	str	w9, [x10]
	ldr	w9, [x8, #4]
	str	w9, [x10, #4]
	ldr	w9, [x8, #8]
	str	w9, [x10, #8]
	ldr	w8, [x8, #12]
	str	w8, [x10, #12]
	ldr	w0, [x22, #16]
	bl	_cpu_to_le16
	str	x0, [x21, #24]
	ldp	w8, w9, [x22, #20]
	and	w8, w8, #0x3
	bfi	w8, w9, #2, #3
	mov	w9, #1
	stp	w8, w9, [x21]
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_mwl8k_post_pervif_cmd
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
LBB0_8:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_SET_NEW_STN,4,2      ; @MWL8K_CMD_SET_NEW_STN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MWL8K_STA_ACTION_ADD,4,2       ; @MWL8K_STA_ACTION_ADD
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_mwl8k_cmd_set_new_stn_add
.subsections_via_symbols
