	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_set_address
_ipw2100_set_address:                   ## @ipw2100_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_libipw_priv
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_CFG_CUSTOM_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ipw2100_set_mac_address
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_ipw2100_reset_adapter
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_CFG_CUSTOM_MAC,4,2             ## @CFG_CUSTOM_MAC
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_ipw2100_set_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_address
_ipw2100_set_address:                   ; @ipw2100_set_address
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_libipw_priv
	mov	x19, x0
	ldr	w0, [x20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CFG_CUSTOM_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG_CUSTOM_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x19
	mov	w1, #0
	bl	_ipw2100_set_mac_address
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_mutex_unlock
	add	x0, x19, #4
	bl	_ipw2100_reset_adapter
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_CFG_CUSTOM_MAC,4,2             ; @CFG_CUSTOM_MAC
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_ipw2100_set_address
.subsections_via_symbols
