	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_switch_band
_b43_switch_band:                       ## @b43_switch_band
	.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	%rdi, %r14
	movl	(%rsi), %edi
	cmpl	$128, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edi
	jne	LBB0_2
## %bb.6:
	cmpq	$0, 48(%r14)
	je	LBB0_7
## %bb.8:
	xorl	%ebx, %ebx
	cmpl	$0, 16(%r14)
	jne	LBB0_14
## %bb.9:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_4:
	cmpq	$0, 40(%r14)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	$0, 16(%r14)
	je	LBB0_14
LBB0_10:
	movl	8(%r14), %r15d
	callq	_band_to_string
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_b43dbg
	movq	24(%r14), %rax
	movq	_B43_PHYTYPE_N@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	cmpl	$2, 32(%r14)
	jg	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_b43_software_rfkill
LBB0_13:
	movl	%ebx, 16(%r14)
	movq	%r14, %rdi
	callq	_b43_phy_put_into_reset
	movq	%r14, %rdi
	callq	_b43_phy_take_out_of_reset
	movq	%r14, %rdi
	callq	_b43_upload_initvals_band
	movq	%r14, %rdi
	callq	_b43_phy_init
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_2:
	movl	$1, %edi
	callq	_B43_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movl	8(%r14), %ebx
	callq	_band_to_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_b43err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This device doesn't support %s-GHz band\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Switching to %s GHz band\n"

	.comm	_B43_PHYTYPE_N,8,3              ## @B43_PHYTYPE_N
	.comm	_B43_BCMA_IOCTL_GMODE,4,2       ## @B43_BCMA_IOCTL_GMODE
	.comm	_B43_TMSLOW_GMODE,4,2           ## @B43_TMSLOW_GMODE
	.comm	_BCMA_IOCTL,4,2                 ## @BCMA_IOCTL
	.comm	_SSB_TMSLOW,4,2                 ## @SSB_TMSLOW
	.no_dead_strip	_b43_switch_band
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_switch_band
_b43_switch_band:                       ; @b43_switch_band
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x1]
	cmp	w0, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_12
; %bb.2:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_13
; %bb.3:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_11
; %bb.4:
	mov	w21, #1
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_13
; %bb.6:
	mov	w21, #0
	mov	w8, #0
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_15
LBB0_7:
	ldr	w20, [x19, #8]
	bl	_band_to_string
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_b43dbg
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x9, _B43_PHYTYPE_N@GOTPAGE
Lloh3:
	ldr	x9, [x9, _B43_PHYTYPE_N@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x19, #32]
	cmp	w8, #2
	b.gt	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_software_rfkill
LBB0_10:
	str	w21, [x19, #16]
	mov	x0, x19
	bl	_b43_phy_put_into_reset
	mov	x0, x19
	bl	_b43_phy_take_out_of_reset
	mov	x0, x19
	bl	_b43_upload_initvals_band
	mov	x0, x19
	bl	_b43_phy_init
LBB0_11:
	mov	w8, #0
	b	LBB0_15
LBB0_12:
	mov	w0, #1
	bl	_B43_WARN_ON
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	ldr	w19, [x19, #8]
	bl	_band_to_string
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_b43err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_15:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This device doesn't support %s-GHz band\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Switching to %s GHz band\n"

	.comm	_B43_PHYTYPE_N,8,3              ; @B43_PHYTYPE_N
	.comm	_B43_BCMA_IOCTL_GMODE,4,2       ; @B43_BCMA_IOCTL_GMODE
	.comm	_B43_TMSLOW_GMODE,4,2           ; @B43_TMSLOW_GMODE
	.comm	_BCMA_IOCTL,4,2                 ; @BCMA_IOCTL
	.comm	_SSB_TMSLOW,4,2                 ; @SSB_TMSLOW
	.no_dead_strip	_b43_switch_band
.subsections_via_symbols
