	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_set_aid
_mwl8k_cmd_set_aid:                     ## @mwl8k_cmd_set_aid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_MWL8K_CMD_SET_AID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	$48, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	movl	32(%rbx), %edi
	movl	16(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.4:
	movq	_MWL8K_FRAME_PROT_11G@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_5:
	movq	_IEEE80211_HT_OP_MODE_PROTECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	4(%r12), %ecx
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.7:
	movq	_MWL8K_FRAME_PROT_11N_HT_ALL@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	je	LBB0_9
	jmp	LBB0_10
LBB0_6:
	movq	_MWL8K_FRAME_PROT_DISABLED@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	jne	LBB0_10
LBB0_9:
	movq	_MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	callq	_legacy_rate_mask_to_array
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mwl8k_post_cmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	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_AID,4,2          ## @MWL8K_CMD_SET_AID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MWL8K_FRAME_PROT_11G,4,2       ## @MWL8K_FRAME_PROT_11G
	.comm	_IEEE80211_HT_OP_MODE_PROTECTION,4,2 ## @IEEE80211_HT_OP_MODE_PROTECTION
	.comm	_MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY,4,2 ## @MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY
	.comm	_MWL8K_FRAME_PROT_11N_HT_ALL,4,2 ## @MWL8K_FRAME_PROT_11N_HT_ALL
	.comm	_MWL8K_FRAME_PROT_DISABLED,4,2  ## @MWL8K_FRAME_PROT_DISABLED
	.no_dead_strip	_mwl8k_cmd_set_aid
.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_aid
_mwl8k_cmd_set_aid:                     ; @mwl8k_cmd_set_aid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_SET_AID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_SET_AID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	mov	w0, #48
	bl	_cpu_to_le16
	str	x0, [x21]
	ldr	w0, [x22]
	bl	_cpu_to_le16
	str	x0, [x21, #40]
	ldr	w0, [x21, #32]
	ldr	w1, [x22, #16]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _MWL8K_FRAME_PROT_11G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWL8K_FRAME_PROT_11G@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	w8, [x22, #4]
Lloh14:
	adrp	x9, _IEEE80211_HT_OP_MODE_PROTECTION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IEEE80211_HT_OP_MODE_PROTECTION@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh17:
	adrp	x9, _MWL8K_FRAME_PROT_DISABLED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MWL8K_FRAME_PROT_DISABLED@GOTPAGEOFF]
Lloh19:
	adrp	x10, _MWL8K_FRAME_PROT_11N_HT_ALL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MWL8K_FRAME_PROT_11N_HT_ALL@GOTPAGEOFF]
	cmp	w8, #128
	csel	x9, x10, x9, eq
Lloh21:
	adrp	x10, _MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY@GOTPAGEOFF]
	cmp	w8, #129
	csel	x8, x10, x9, eq
LBB0_5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #24]
	ldr	w0, [x21, #16]
	mov	x1, x20
	bl	_legacy_rate_mask_to_array
	mov	x0, x19
	mov	x1, x21
	bl	_mwl8k_post_cmd
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_SET_AID,4,2          ; @MWL8K_CMD_SET_AID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MWL8K_FRAME_PROT_11G,4,2       ; @MWL8K_FRAME_PROT_11G
	.comm	_IEEE80211_HT_OP_MODE_PROTECTION,4,2 ; @IEEE80211_HT_OP_MODE_PROTECTION
	.comm	_MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY,4,2 ; @MWL8K_FRAME_PROT_11N_HT_40MHZ_ONLY
	.comm	_MWL8K_FRAME_PROT_11N_HT_ALL,4,2 ; @MWL8K_FRAME_PROT_11N_HT_ALL
	.comm	_MWL8K_FRAME_PROT_DISABLED,4,2  ; @MWL8K_FRAME_PROT_DISABLED
	.no_dead_strip	_mwl8k_cmd_set_aid
.subsections_via_symbols
