	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_set_wap
_ipw2100_wx_set_wap:                    ## @ipw2100_wx_set_wap
	.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	%rdx, %r15
	callq	_libipw_priv
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_STATUS_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	8(%r15), %rdi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%r15), %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movq	_CFG_STATIC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ipw2100_set_mandatory_bssid
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_CFG_STATIC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movq	8(%r15), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ipw2100_set_mandatory_bssid
	movl	%eax, %ebx
	movq	8(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STATUS_INITIALIZED,4,2         ## @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exit - disable mandatory BSSID\n"

	.comm	_CFG_STATIC_BSSID,4,2           ## @CFG_STATIC_BSSID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"SET BSSID -> %pM\n"

	.no_dead_strip	_ipw2100_wx_set_wap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_wx_set_wap
_ipw2100_wx_set_wap:                    ; @ipw2100_wx_set_wap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	bl	_libipw_priv
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _STATUS_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_INITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	x0, [x21, #8]
	bl	_is_broadcast_ether_addr
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x21, #8]
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_7
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
Lloh8:
	adrp	x8, _CFG_STATIC_BSSID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CFG_STATIC_BSSID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	bic	w8, w9, w8
	str	w8, [x20, #12]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_ipw2100_set_mandatory_bssid
	mov	x20, x0
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _CFG_STATIC_BSSID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CFG_STATIC_BSSID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	ldr	x1, [x21, #8]
Lloh20:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x1, [x21, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_ipw2100_set_mandatory_bssid
	mov	x20, x0
	ldr	x8, [x21, #8]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_WX
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STATUS_INITIALIZED,4,2         ; @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exit - disable mandatory BSSID\n"

	.comm	_CFG_STATIC_BSSID,4,2           ; @CFG_STATIC_BSSID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"SET BSSID -> %pM\n"

	.no_dead_strip	_ipw2100_wx_set_wap
.subsections_via_symbols
