	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_update_stadb_add
_mwl8k_cmd_update_stadb_add:            ## @mwl8k_cmd_update_stadb_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_MWL8K_CMD_UPDATE_STADB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	$88, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	_MWL8K_STA_DB_MODIFY_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 84(%rbx)
	movl	80(%rbx), %edi
	movl	28(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_MWL8K_PEER_TYPE_ACCESSPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 56(%rbx)
	movl	8(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%rbx)
	movl	12(%r15), %eax
	movl	16(%r15), %ecx
	andl	$3, %eax
	andl	$7, %ecx
	leal	(%rax,%rcx,4), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%r15), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	(%rax,%rcx,4), %esi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	shll	$5, %esi
LBB0_5:
	movl	44(%rbx), %edi
	callq	_legacy_rate_mask_to_array
	movl	40(%rbx), %edi
	movl	20(%r15), %esi
	movl	$16, %edx
	callq	_memcpy
	movl	$1, 20(%rbx)
	movq	$0, 32(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mwl8k_post_cmd
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	24(%rbx), %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movl	%r14d, %eax
	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_UPDATE_STADB,4,2     ## @MWL8K_CMD_UPDATE_STADB
	.comm	_MWL8K_STA_DB_MODIFY_ENTRY,4,2  ## @MWL8K_STA_DB_MODIFY_ENTRY
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MWL8K_PEER_TYPE_ACCESSPOINT,4,2 ## @MWL8K_PEER_TYPE_ACCESSPOINT
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_mwl8k_cmd_update_stadb_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_update_stadb_add
_mwl8k_cmd_update_stadb_add:            ; @mwl8k_cmd_update_stadb_add
	.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	x21, x2
	mov	x22, x1
	mov	x20, 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_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_UPDATE_STADB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_UPDATE_STADB@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	w0, #88
	bl	_cpu_to_le16
	str	x0, [x19]
Lloh6:
	adrp	x8, _MWL8K_STA_DB_MODIFY_ENTRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWL8K_STA_DB_MODIFY_ENTRY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x19, #84]
	ldr	w0, [x19, #80]
	ldr	w1, [x21, #28]
Lloh9:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_memcpy
Lloh12:
	adrp	x8, _MWL8K_PEER_TYPE_ACCESSPOINT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MWL8K_PEER_TYPE_ACCESSPOINT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	ldr	w0, [x22]
	bl	_cpu_to_le16
	str	x0, [x19, #64]
	ldr	w8, [x21, #24]
	str	w8, [x19, #56]
	ldr	w0, [x21, #8]
	bl	_cpu_to_le16
	str	x0, [x19, #48]
	ldp	w8, w9, [x21, #12]
	and	w8, w8, #0x3
	bfi	w8, w9, #2, #3
	str	w8, [x19, #16]
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh15:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x8]
	ldr	x8, [x21]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w1, [x8, x9, lsl #2]
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_4:
Lloh21:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w1, w8, #5
LBB0_5:
	ldr	w0, [x19, #44]
	bl	_legacy_rate_mask_to_array
	ldr	w0, [x19, #40]
	ldr	w1, [x21, #20]
	mov	w2, #16
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #20]
	str	xzr, [x19, #32]
	mov	x0, x20
	mov	x1, x19
	bl	_mwl8k_post_cmd
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w20, [x19, #24]
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x20
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_UPDATE_STADB,4,2     ; @MWL8K_CMD_UPDATE_STADB
	.comm	_MWL8K_STA_DB_MODIFY_ENTRY,4,2  ; @MWL8K_STA_DB_MODIFY_ENTRY
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MWL8K_PEER_TYPE_ACCESSPOINT,4,2 ; @MWL8K_PEER_TYPE_ACCESSPOINT
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_mwl8k_cmd_update_stadb_add
.subsections_via_symbols
