	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_set_wap
_ipw_wx_set_wap:                        ## @ipw_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, %rbx
	callq	_libipw_priv
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %edi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movq	_CFG_STATIC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_ASSOC
LBB0_8:
	movq	%r14, %rdi
	callq	_ipw_associate
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CFG_STATIC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movl	4(%r14), %edi
	movl	8(%rbx), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	jmp	LBB0_9
LBB0_7:
	movl	8(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movl	4(%r14), %edi
	movl	8(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	leaq	L_.str.4(%rip), %rdi
	callq	_IPW_DEBUG_ASSOC
	movq	%r14, %rdi
	callq	_ipw_disassociate
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting AP BSSID to ANY\n"

	.comm	_CFG_STATIC_BSSID,4,2           ## @CFG_STATIC_BSSID
L_.str.1:                               ## @.str.1
	.asciz	"Attempting to associate with new parameters.\n"

L_.str.2:                               ## @.str.2
	.asciz	"BSSID set to current BSSID.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Setting mandatory BSSID to %pM\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.4:                               ## @.str.4
	.asciz	"[re]association triggered due to BSSID change.\n"

	.no_dead_strip	_ipw_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 ipw_wx_set_wap
_ipw_wx_set_wap:                        ; @ipw_wx_set_wap
	.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	x20, x2
	bl	_libipw_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	ldr	w0, [x20, #8]
	bl	_is_broadcast_ether_addr
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_8
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
Lloh5:
	adrp	x8, _CFG_STATIC_BSSID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CFG_STATIC_BSSID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_ASSOC
LBB0_4:
	mov	x0, x19
	bl	_ipw_associate
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh13:
	adrp	x8, _CFG_STATIC_BSSID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CFG_STATIC_BSSID@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w1, [x20, #8]
	bl	_ether_addr_equal
	cbz	x0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_WX
	b	LBB0_5
LBB0_10:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_WX
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #8]
Lloh20:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_memcpy
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IPW_DEBUG_ASSOC
	mov	x0, x19
	bl	_ipw_disassociate
	cbnz	w0, LBB0_5
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting AP BSSID to ANY\n"

	.comm	_CFG_STATIC_BSSID,4,2           ; @CFG_STATIC_BSSID
l_.str.1:                               ; @.str.1
	.asciz	"Attempting to associate with new parameters.\n"

l_.str.2:                               ; @.str.2
	.asciz	"BSSID set to current BSSID.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Setting mandatory BSSID to %pM\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.4:                               ; @.str.4
	.asciz	"[re]association triggered due to BSSID change.\n"

	.no_dead_strip	_ipw_wx_set_wap
.subsections_via_symbols
