	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_bssid             ## -- Begin function ath5k_hw_set_bssid
	.p2align	4, 0x90
_ath5k_hw_set_bssid:                    ## @ath5k_hw_set_bssid
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ath5k_hw_common
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_AR5K_AR5212@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath_hw_setbssidmask
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_get_unaligned_le32
	movq	_AR5K_BSS_ID0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ath5k_hw_reg_write
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_get_unaligned_le16
	movl	$16383, %esi                    ## imm = 0x3FFF
	andl	(%rbx), %esi
	movq	_AR5K_BSS_ID1_AID_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	movq	_AR5K_BSS_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ath5k_hw_reg_write
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_AR5K_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_BEACON_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_AR5K_REG_WRITE_BITS
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath5k_hw_enable_pspoll         ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath5k_hw_disable_pspoll        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5212,8,3                ## @AR5K_AR5212
	.comm	_AR5K_BSS_ID0,4,2               ## @AR5K_BSS_ID0
	.comm	_AR5K_BSS_ID1_AID_S,4,2         ## @AR5K_BSS_ID1_AID_S
	.comm	_AR5K_BSS_ID1,4,2               ## @AR5K_BSS_ID1
	.comm	_AR5K_BEACON,4,2                ## @AR5K_BEACON
	.comm	_AR5K_BEACON_TIM,4,2            ## @AR5K_BEACON_TIM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_bssid             ; -- Begin function ath5k_hw_set_bssid
	.p2align	2
_ath5k_hw_set_bssid:                    ; @ath5k_hw_set_bssid
	.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	x19, x0
	bl	_ath5k_hw_common
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AR5K_AR5212@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_AR5212@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ath_hw_setbssidmask
LBB0_2:
	ldr	x0, [x20, #8]
	bl	_get_unaligned_le32
	mov	x1, x0
Lloh3:
	adrp	x8, _AR5K_BSS_ID0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_BSS_ID0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	bl	_get_unaligned_le16
	ldr	w8, [x20]
	and	w8, w8, #0x3fff
Lloh6:
	adrp	x9, _AR5K_BSS_ID1_AID_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR5K_BSS_ID1_AID_S@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w1, w8, w0
Lloh9:
	adrp	x8, _AR5K_BSS_ID1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_BSS_ID1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _AR5K_BEACON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR5K_BEACON@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _AR5K_BEACON_TIM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR5K_BEACON_TIM@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_AR5K_REG_WRITE_BITS
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath5k_hw_enable_pspoll
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath5k_hw_disable_pspoll
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5212,8,3                ; @AR5K_AR5212
	.comm	_AR5K_BSS_ID0,4,2               ; @AR5K_BSS_ID0
	.comm	_AR5K_BSS_ID1_AID_S,4,2         ; @AR5K_BSS_ID1_AID_S
	.comm	_AR5K_BSS_ID1,4,2               ; @AR5K_BSS_ID1
	.comm	_AR5K_BEACON,4,2                ; @AR5K_BEACON
	.comm	_AR5K_BEACON_TIM,4,2            ; @AR5K_BEACON_TIM
.subsections_via_symbols
