	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_update_mac_addr
_mwl8k_cmd_update_mac_addr:             ## @mwl8k_cmd_update_mac_addr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	%rsi, %rdi
	callq	_MWL8K_VIF
	movq	_MWL8K_MAC_TYPE_PRIMARY_AP@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	testq	%r14, %r14
	je	LBB0_12
## %bb.1:
	movq	(%r14), %rcx
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %r15
	movq	(%rax), %rbx
	incq	%rbx
	movl	12(%r12), %edi
	callq	_ffs
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_6
LBB0_4:
	movq	_MWL8K_MAC_TYPE_SECONDARY_CLIENT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r13d
	movq	%r15, %rbx
	jmp	LBB0_12
LBB0_7:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	incq	%rbx
	movl	8(%r12), %edi
	callq	_ffs
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %r13d
	jmp	LBB0_11
LBB0_10:
	movq	_MWL8K_MAC_TYPE_SECONDARY_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%rax, %r15
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.17:
	movq	_MWL8K_CMD_DEL_MAC_ADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_16:
	movq	_MWL8K_CMD_SET_MAC_ADDR@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	cmpq	$0, (%r12)
	je	LBB0_20
## %bb.19:
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%r15, %rcx
	addq	$24, %rcx
	movq	%rax, 32(%r15)
	jmp	LBB0_21
LBB0_20:
	movq	%r15, %rcx
	addq	$16, %rcx
LBB0_21:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mwl8k_post_pervif_cmd
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MWL8K_MAC_TYPE_PRIMARY_CLIENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_MAC_TYPE_PRIMARY_AP,4,2  ## @MWL8K_MAC_TYPE_PRIMARY_AP
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_MWL8K_MAC_TYPE_SECONDARY_CLIENT,4,2 ## @MWL8K_MAC_TYPE_SECONDARY_CLIENT
	.comm	_MWL8K_MAC_TYPE_PRIMARY_CLIENT,4,2 ## @MWL8K_MAC_TYPE_PRIMARY_CLIENT
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_MWL8K_MAC_TYPE_SECONDARY_AP,4,2 ## @MWL8K_MAC_TYPE_SECONDARY_AP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWL8K_CMD_SET_MAC_ADDR,4,2     ## @MWL8K_CMD_SET_MAC_ADDR
	.comm	_MWL8K_CMD_DEL_MAC_ADDR,4,2     ## @MWL8K_CMD_DEL_MAC_ADDR
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_mwl8k_cmd_update_mac_addr
.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_mac_addr
_mwl8k_cmd_update_mac_addr:             ; @mwl8k_cmd_update_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x0]
	mov	x0, x1
	bl	_MWL8K_VIF
Lloh0:
	adrp	x24, _MWL8K_MAC_TYPE_PRIMARY_AP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWL8K_MAC_TYPE_PRIMARY_AP@GOTPAGEOFF]
	ldr	w23, [x24]
	cbz	x19, LBB0_11
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x0]
	add	x23, x8, #1
	ldr	w0, [x25, #12]
	bl	_ffs
	cmp	x23, x0
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x25]
	cbz	x8, LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _MWL8K_MAC_TYPE_SECONDARY_CLIENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MWL8K_MAC_TYPE_SECONDARY_CLIENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x0]
	add	x23, x8, #1
	ldr	w0, [x25, #8]
	bl	_ffs
	cmp	x23, x0
	b.ne	LBB0_8
; %bb.7:
	ldr	w23, [x24]
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _MWL8K_MAC_TYPE_SECONDARY_AP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MWL8K_MAC_TYPE_SECONDARY_AP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _MWL8K_MAC_TYPE_PRIMARY_CLIENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MWL8K_MAC_TYPE_PRIMARY_CLIENT@GOTPAGEOFF]
LBB0_10:
	ldr	w23, [x8]
LBB0_11:
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.12:
	mov	x24, x0
Lloh17:
	adrp	x8, _MWL8K_CMD_DEL_MAC_ADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MWL8K_CMD_DEL_MAC_ADDR@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MWL8K_CMD_SET_MAC_ADDR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MWL8K_CMD_SET_MAC_ADDR@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	mov	w0, #40
	bl	_cpu_to_le16
	str	x0, [x24]
	ldr	x8, [x25]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x23
	bl	_cpu_to_le16
	add	x8, x24, #24
	str	x0, [x24, #32]
	b	LBB0_16
LBB0_14:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_15:
	add	x8, x24, #16
LBB0_16:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_mwl8k_post_pervif_cmd
	mov	x19, x0
	mov	x0, x24
	bl	_kfree
	mov	x0, x19
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_MAC_TYPE_PRIMARY_AP,4,2  ; @MWL8K_MAC_TYPE_PRIMARY_AP
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_MWL8K_MAC_TYPE_SECONDARY_CLIENT,4,2 ; @MWL8K_MAC_TYPE_SECONDARY_CLIENT
	.comm	_MWL8K_MAC_TYPE_PRIMARY_CLIENT,4,2 ; @MWL8K_MAC_TYPE_PRIMARY_CLIENT
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_MWL8K_MAC_TYPE_SECONDARY_AP,4,2 ; @MWL8K_MAC_TYPE_SECONDARY_AP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_SET_MAC_ADDR,4,2     ; @MWL8K_CMD_SET_MAC_ADDR
	.comm	_MWL8K_CMD_DEL_MAC_ADDR,4,2     ; @MWL8K_CMD_DEL_MAC_ADDR
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_mwl8k_cmd_update_mac_addr
.subsections_via_symbols
