	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_update_bssid_mask_and_opmode ## -- Begin function ath5k_update_bssid_mask_and_opmode
	.p2align	4, 0x90
_ath5k_update_bssid_mask_and_opmode:    ## @ath5k_update_bssid_mask_and_opmode
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_ath5k_hw_common
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	callq	_eth_broadcast_addr
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -64(%rbp)
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -56(%rbp)
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	-64(%rbp), %rdi
	movq	%r14, %rdx
	callq	_ath5k_vif_iter
LBB0_2:
	movl	12(%r15), %edi
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ath5k_vif_iter@GOTPCREL(%rip), %rdx
	leaq	-64(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movl	4(%r15), %edi
	movl	-44(%rbp), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	-48(%rbp), %esi
	movl	%esi, 8(%r15)
	cmpl	(%rbx), %esi
	jne	LBB0_4
## %bb.3:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%r15)
LBB0_4:
	movq	%r15, %rdi
	callq	_ath5k_hw_set_opmode
	movq	_ATH5K_DEBUG_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movl	8(%r15), %ebx
	movl	%ebx, %edi
	callq	_ath_opmode_to_string
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_ATH5K_DBG
	cmpl	$0, -60(%rbp)
	je	LBB0_7
## %bb.5:
	cmpl	$0, -64(%rbp)
	je	LBB0_7
## %bb.6:
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	callq	_ath5k_hw_set_lladdr
LBB0_7:
	movq	%r15, %rdi
	callq	_ath5k_hw_hasbssidmask
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_ath5k_hw_set_bssid_mask
LBB0_9:
	cmpl	$1, -56(%rbp)
	jle	LBB0_10
## %bb.11:
	movq	_AR5K_RX_FILTER_PROM@GOTPCREL(%rip), %rax
	movl	(%r15), %ebx
	orl	(%rax), %ebx
	movl	%ebx, (%r15)
	jmp	LBB0_12
LBB0_10:
	movl	(%r15), %ebx
LBB0_12:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_set_rx_filter
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ATH5K_DBG
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ## @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_ATH5K_DEBUG_MODE,4,2           ## @ATH5K_DEBUG_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mode setup opmode %d (%s)\n"

	.comm	_AR5K_RX_FILTER_PROM,4,2        ## @AR5K_RX_FILTER_PROM
L_.str.1:                               ## @.str.1
	.asciz	"RX filter 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ath5k_update_bssid_mask_and_opmode
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ath5k_update_bssid_mask_and_opmode
	.p2align	2
_ath5k_update_bssid_mask_and_opmode:    ; @ath5k_update_bssid_mask_and_opmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	bl	_ath5k_hw_common
	ldr	w8, [x0]
	str	w8, [sp, #40]
	bl	_eth_broadcast_addr
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
Lloh2:
	adrp	x21, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [sp, #32]
	str	wzr, [sp, #24]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	add	x0, sp, #16
	mov	x2, x20
	bl	_ath5k_vif_iter
LBB0_2:
	ldr	w0, [x19, #12]
Lloh4:
	adrp	x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, _ath5k_vif_iter@GOTPAGE
Lloh8:
	ldr	x2, [x2, _ath5k_vif_iter@GOTPAGEOFF]
	add	x3, sp, #16
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #36]
Lloh9:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w1, [sp, #32]
	str	w1, [x19, #8]
	ldr	w8, [x21]
	cmp	w1, w8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	str	w1, [x19, #8]
LBB0_4:
	mov	x0, x19
	bl	_ath5k_hw_set_opmode
Lloh15:
	adrp	x22, _ATH5K_DEBUG_MODE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ATH5K_DEBUG_MODE@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	w21, [x19, #8]
	mov	x0, x21
	bl	_ath_opmode_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_ATH5K_DBG
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_ath5k_hw_set_lladdr
LBB0_7:
	mov	x0, x19
	bl	_ath5k_hw_hasbssidmask
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_ath5k_hw_set_bssid_mask
LBB0_9:
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.le	LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _AR5K_RX_FILTER_PROM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR5K_RX_FILTER_PROM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w20, w9, w8
	str	w20, [x19]
	b	LBB0_12
LBB0_11:
	ldr	w20, [x19]
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_ath5k_hw_set_rx_filter
	ldr	w1, [x22]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ATH5K_DBG
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ; @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_ATH5K_DEBUG_MODE,4,2           ; @ATH5K_DEBUG_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mode setup opmode %d (%s)\n"

	.comm	_AR5K_RX_FILTER_PROM,4,2        ; @AR5K_RX_FILTER_PROM
l_.str.1:                               ; @.str.1
	.asciz	"RX filter 0x%x\n"

.subsections_via_symbols
