	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_set_mac_address
_ipw2100_set_mac_address:               ## @ipw2100_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -32(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -24(%rbp)
	movq	_ADAPTER_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_HC
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_INFO
	movq	_CFG_CUSTOM_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	movl	(%r14), %edx
	xorl	%edi, %edi
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	(%r14), %edx
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	xorl	%edi, %edi
LBB0_3:
	callq	_memcpy
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ipw2100_hw_send_command
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_IPW_DEBUG_INFO
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ADAPTER_ADDRESS,4,2            ## @ADAPTER_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET_MAC_ADDRESS\n"

L_.str.1:                               ## @.str.1
	.asciz	"enter\n"

	.comm	_CFG_CUSTOM_MAC,4,2             ## @CFG_CUSTOM_MAC
L_.str.2:                               ## @.str.2
	.asciz	"exit\n"

	.no_dead_strip	_ipw2100_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_set_mac_address
_ipw2100_set_mac_address:               ; @ipw2100_set_mac_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x20]
	stp	wzr, w8, [sp]
Lloh2:
	adrp	x8, _ADAPTER_ADDRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADAPTER_ADDRESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_HC
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_INFO
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _CFG_CUSTOM_MAC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CFG_CUSTOM_MAC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x19, #16]
	ldr	w2, [x20]
	mov	w0, #0
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	ldr	w2, [x20]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w0, #0
LBB0_3:
	bl	_memcpy
	mov	x1, sp
	mov	x0, x19
	bl	_ipw2100_hw_send_command
	mov	x19, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_INFO
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ADAPTER_ADDRESS,4,2            ; @ADAPTER_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET_MAC_ADDRESS\n"

l_.str.1:                               ; @.str.1
	.asciz	"enter\n"

	.comm	_CFG_CUSTOM_MAC,4,2             ; @CFG_CUSTOM_MAC
l_.str.2:                               ; @.str.2
	.asciz	"exit\n"

	.no_dead_strip	_ipw2100_set_mac_address
.subsections_via_symbols
