	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_switch_channel             ## -- Begin function b43_switch_channel
	.p2align	4, 0x90
_b43_switch_channel:                    ## @b43_switch_channel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_B43_SHM_SH_CHAN_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r14d, %ebx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_B43_SHM_SH_CHAN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_b43_shm_read16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_b43_shm_write16
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_b43_shm_write16
	jmp	LBB0_5
LBB0_3:
	movl	$8, %edi
	callq	_msleep
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_B43_SHM_SH_CHAN_5GHZ,4,2       ## @B43_SHM_SH_CHAN_5GHZ
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_SH_CHAN,4,2            ## @B43_SHM_SH_CHAN
	.comm	_B43_SHM_SH_CHAN_40MHZ,4,2      ## @B43_SHM_SH_CHAN_40MHZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_switch_channel             ; -- Begin function b43_switch_channel
	.p2align	2
_b43_switch_channel:                    ; @b43_switch_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_b43_current_band
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _B43_SHM_SH_CHAN_5GHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B43_SHM_SH_CHAN_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w8, w9, wzr, eq
	orr	w22, w8, w21
Lloh6:
	adrp	x23, _B43_SHM_SHARED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _B43_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x24, _B43_SHM_SH_CHAN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _B43_SHM_SH_CHAN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_b43_shm_read16
	mov	x20, x0
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x3, x22
	bl	_b43_shm_write16
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x3, x20
	bl	_b43_shm_write16
	b	LBB0_3
LBB0_2:
	mov	w0, #8
	bl	_msleep
LBB0_3:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_B43_SHM_SH_CHAN_5GHZ,4,2       ; @B43_SHM_SH_CHAN_5GHZ
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_SH_CHAN,4,2            ; @B43_SHM_SH_CHAN
	.comm	_B43_SHM_SH_CHAN_40MHZ,4,2      ; @B43_SHM_SH_CHAN_40MHZ
.subsections_via_symbols
