	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_mac_address        ## -- Begin function mwifiex_set_mac_address
	.p2align	4, 0x90
_mwifiex_set_mac_address:               ## @mwifiex_set_mac_address
	.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	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rdi
	callq	_ether_addr_to_u64
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_ether_addr_to_u64
	movl	%eax, %edi
LBB0_9:
	movq	8(%r12), %rsi
	callq	_u64_to_ether_addr
	movq	_HostCmd_CMD_802_11_MAC_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	8(%r12), %rsi
	movl	%r15d, %edi
	callq	_u64_to_ether_addr
	movq	16(%r12), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_mwifiex_dbg
	movl	%ebx, %r13d
	jmp	LBB0_12
LBB0_2:
	movq	(%r12), %rax
	movq	_MWIFIEX_BSS_TYPE_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_11:
	movl	(%r14), %edi
	movq	8(%r12), %rsi
	callq	_ether_addr_copy
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MWIFIEX_BSS_TYPE_P2P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_MWIFIEX_MAC_LOCAL_ADMIN_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_BIT_ULL
	movl	%eax, %edi
	orl	%r15d, %edi
	jmp	LBB0_8
LBB0_6:
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, %edi
	cmpq	%r12, (%rcx)
	je	LBB0_9
## %bb.7:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_BIT_ULL
	movl	%eax, %edi
	xorl	%r15d, %edi
LBB0_8:
	addl	24(%r12), %edi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_TYPE_ANY,8,3       ## @MWIFIEX_BSS_TYPE_ANY
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MWIFIEX_BSS_TYPE_P2P,8,3       ## @MWIFIEX_BSS_TYPE_P2P
	.comm	_MWIFIEX_MAC_LOCAL_ADMIN_BIT,8,3 ## @MWIFIEX_MAC_LOCAL_ADMIN_BIT
	.comm	_HostCmd_CMD_802_11_MAC_ADDRESS,4,2 ## @HostCmd_CMD_802_11_MAC_ADDRESS
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set mac address failed: ret=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_mac_address        ; -- Begin function mwifiex_set_mac_address
	.p2align	2
_mwifiex_set_mac_address:               ; @mwifiex_set_mac_address
	.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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_ether_addr_to_u64
	mov	x21, x0
	cbz	w23, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_ether_addr_to_u64
LBB0_2:
	ldr	x1, [x19, #8]
	bl	_u64_to_ether_addr
Lloh0:
	adrp	x8, _HostCmd_CMD_802_11_MAC_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_802_11_MAC_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x1, [x19, #8]
	mov	x0, x21
	bl	_u64_to_ether_addr
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_mwifiex_dbg
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _MWIFIEX_BSS_TYPE_ANY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MWIFIEX_BSS_TYPE_ANY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_6:
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	bl	_ether_addr_copy
LBB0_7:
	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
LBB0_8:
Lloh17:
	adrp	x9, _MWIFIEX_BSS_TYPE_P2P@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MWIFIEX_BSS_TYPE_P2P@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _MWIFIEX_MAC_LOCAL_ADMIN_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MWIFIEX_MAC_LOCAL_ADMIN_BIT@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_BIT_ULL
	orr	w8, w0, w21
	b	LBB0_12
LBB0_10:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x9, x19
	b.eq	LBB0_2
; %bb.11:
	add	x0, x8, #8
	bl	_BIT_ULL
	eor	w8, w0, w21
LBB0_12:
	ldr	w9, [x19, #24]
	add	w0, w8, w9
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_TYPE_ANY,8,3       ; @MWIFIEX_BSS_TYPE_ANY
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MWIFIEX_BSS_TYPE_P2P,8,3       ; @MWIFIEX_BSS_TYPE_P2P
	.comm	_MWIFIEX_MAC_LOCAL_ADMIN_BIT,8,3 ; @MWIFIEX_MAC_LOCAL_ADMIN_BIT
	.comm	_HostCmd_CMD_802_11_MAC_ADDRESS,4,2 ; @HostCmd_CMD_802_11_MAC_ADDRESS
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set mac address failed: ret=%d\n"

.subsections_via_symbols
