	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_set_channel
_b43_nphy_set_channel:                  ## @b43_nphy_set_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	(%rdi), %eax
	cmpl	$19, %eax
	jl	LBB0_2
LBB0_1:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	cmpl	$7, %eax
	jl	LBB0_6
## %bb.3:
	movl	12(%r14), %esi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_r2057_get_chantabent_rev7
	xorl	%r15d, %r15d
	cmpq	$0, -56(%rbp)
	jne	LBB0_4
## %bb.5:
	cmpq	$0, -48(%rbp)
	movl	$0, %r12d
	je	LBB0_1
	jmp	LBB0_12
LBB0_6:
	cmpl	$3, %eax
	jl	LBB0_10
## %bb.7:
	movl	12(%r14), %esi
	movq	%r13, %rdi
	callq	_b43_nphy_get_chantabent_rev3
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r12
	jmp	LBB0_12
LBB0_10:
	movl	8(%r14), %esi
	movq	%r13, %rdi
	callq	_b43_nphy_get_chantabent_rev2
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_29
## %bb.11:
	movq	%rax, %r15
	jmp	LBB0_12
LBB0_4:
	xorl	%r12d, %r12d
LBB0_12:
	movl	8(%r14), %eax
	movl	%eax, 12(%r13)
	movq	_NL80211_CHAN_HT40PLUS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_15
## %bb.13:
	movq	_B43_NPHY_RXCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RXCTL_BSELU20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43_phy_set
	movl	(%r13), %eax
	cmpl	$7, %eax
	jl	LBB0_24
## %bb.14:
	movq	%r13, %rdi
	movl	$784, %esi                      ## imm = 0x310
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_b43_phy_set
	jmp	LBB0_18
LBB0_15:
	movq	_NL80211_CHAN_HT40MINUS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_18
## %bb.16:
	movq	_B43_NPHY_RXCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RXCTL_BSELU20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r13, %rdi
	callq	_b43_phy_mask
	movl	(%r13), %eax
	cmpl	$7, %eax
	jl	LBB0_24
## %bb.17:
	movq	%r13, %rdi
	movl	$784, %esi                      ## imm = 0x310
	movl	$-32769, %edx                   ## imm = 0xFFFF7FFF
	callq	_b43_phy_mask
LBB0_18:
	movl	(%r13), %eax
	xorl	%ebx, %ebx
	cmpl	$18, %eax
	jg	LBB0_28
## %bb.19:
	cmpl	$7, %eax
	jl	LBB0_24
## %bb.20:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	movq	-48(%rbp), %rdx
	movq	%rsi, %r15
	cmoveq	%rdx, %r15
	movl	8(%r13), %eax
	cmpl	$5, %eax
	jl	LBB0_22
## %bb.21:
	cmpl	$6, %eax
	jne	LBB0_23
LBB0_22:
	movq	(%r14), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
	addl	%r12d, %r12d
	movq	_R2057_TIA_CONFIG_CORE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-3, %edx
	movl	%r12d, %ecx
	callq	_b43_radio_maskset
	movq	_R2057_TIA_CONFIG_CORE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-3, %edx
	movl	%r12d, %ecx
	callq	_b43_radio_maskset
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
LBB0_23:
	movq	%r13, %rdi
	callq	_b43_radio_2057_setup
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_b43_nphy_channel_setup
	jmp	LBB0_28
LBB0_24:
	movq	(%r14), %rdx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpl	$3, %eax
	jl	LBB0_26
## %bb.25:
	xorl	%ecx, %ecx
	cmpq	%rsi, %rdx
	sete	%cl
	shll	$2, %ecx
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$65531, %edx                    ## imm = 0xFFFB
	callq	_b43_radio_maskset
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_b43_radio_2056_setup
	movq	%r13, %rdi
	movq	%r12, %rsi
	jmp	LBB0_27
LBB0_26:
	cmpq	%rsi, %rdx
	movl	$32, %eax
	movl	$80, %ecx
	cmovel	%eax, %ecx
	movq	_B2055_MASTER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$65423, %edx                    ## imm = 0xFF8F
	callq	_b43_radio_maskset
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_b43_radio_2055_setup
	movq	%r13, %rdi
	movq	%r15, %rsi
LBB0_27:
	movq	%r14, %rdx
	callq	_b43_nphy_channel_setup
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_9:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_28
LBB0_29:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ## @NL80211_CHAN_HT40PLUS
	.comm	_B43_NPHY_RXCTL,4,2             ## @B43_NPHY_RXCTL
	.comm	_B43_NPHY_RXCTL_BSELU20,4,2     ## @B43_NPHY_RXCTL_BSELU20
	.comm	_NL80211_CHAN_HT40MINUS,4,2     ## @NL80211_CHAN_HT40MINUS
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_R2057_TIA_CONFIG_CORE0,4,2     ## @R2057_TIA_CONFIG_CORE0
	.comm	_R2057_TIA_CONFIG_CORE1,4,2     ## @R2057_TIA_CONFIG_CORE1
	.comm	_B2055_MASTER1,4,2              ## @B2055_MASTER1
	.no_dead_strip	_b43_nphy_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_set_channel
_b43_nphy_set_channel:                  ; @b43_nphy_set_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp]
	ldr	w8, [x0]
	cmp	w8, #19
	b.lt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ESRCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_2:
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w8, #7
	b.lt	LBB0_5
; %bb.3:
	ldr	w1, [x19, #12]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_r2057_get_chantabent_rev7
	mov	x21, #0
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_10
; %bb.4:
	ldr	x8, [sp]
	mov	x22, x21
	cbz	x8, LBB0_1
	b	LBB0_11
LBB0_5:
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.6:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_b43_nphy_get_chantabent_rev3
	cbz	x0, LBB0_1
; %bb.7:
	mov	x22, x0
	mov	x21, #0
	b	LBB0_11
LBB0_8:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_b43_nphy_get_chantabent_rev2
	cbz	x0, LBB0_1
; %bb.9:
	mov	x21, x0
	mov	x22, #0
	b	LBB0_11
LBB0_10:
	mov	x22, x21
LBB0_11:
	ldr	w8, [x19, #8]
	str	w8, [x20, #12]
Lloh3:
	adrp	x8, _NL80211_CHAN_HT40PLUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_CHAN_HT40PLUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_14
; %bb.12:
Lloh6:
	adrp	x8, _B43_NPHY_RXCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_NPHY_RXCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _B43_NPHY_RXCTL_BSELU20@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_NPHY_RXCTL_BSELU20@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_b43_phy_set
	ldr	w8, [x20]
	cmp	w8, #7
	b.lt	LBB0_23
; %bb.13:
	mov	x0, x20
	mov	w1, #784
	mov	w2, #32768
	bl	_b43_phy_set
	b	LBB0_17
LBB0_14:
Lloh12:
	adrp	x8, _NL80211_CHAN_HT40MINUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_CHAN_HT40MINUS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_17
; %bb.15:
Lloh15:
	adrp	x8, _B43_NPHY_RXCTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B43_NPHY_RXCTL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _B43_NPHY_RXCTL_BSELU20@GOTPAGE
Lloh19:
	ldr	x8, [x8, _B43_NPHY_RXCTL_BSELU20@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x20
	bl	_b43_phy_mask
	ldr	w8, [x20]
	cmp	w8, #7
	b.lt	LBB0_23
; %bb.16:
	mov	x0, x20
	mov	w1, #784
	mov	w2, #-32769
	bl	_b43_phy_mask
LBB0_17:
	ldr	w8, [x20]
	cmp	w8, #18
	b.gt	LBB0_28
; %bb.18:
	cmp	w8, #7
	b.lt	LBB0_23
; %bb.19:
	ldp	x2, x1, [sp]
	cmp	x1, #0
	csel	x21, x2, x1, eq
	ldr	w8, [x20, #8]
	cmp	w8, #5
	b.lt	LBB0_21
; %bb.20:
	cmp	w8, #6
	b.ne	LBB0_22
LBB0_21:
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	lsl	w22, w8, #1
Lloh24:
	adrp	x8, _R2057_TIA_CONFIG_CORE0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R2057_TIA_CONFIG_CORE0@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-3
	mov	x3, x22
	bl	_b43_radio_maskset
Lloh27:
	adrp	x8, _R2057_TIA_CONFIG_CORE1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _R2057_TIA_CONFIG_CORE1@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-3
	mov	x3, x22
	bl	_b43_radio_maskset
	ldp	x2, x1, [sp]
LBB0_22:
	mov	x0, x20
	bl	_b43_radio_2057_setup
	b	LBB0_26
LBB0_23:
	ldr	x9, [x19]
Lloh30:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh31:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	cmp	w8, #3
	b.lt	LBB0_25
; %bb.24:
	cmp	x9, x10
	cset	w8, eq
	lsl	w3, w8, #2
	mov	x0, x20
	mov	w1, #8
	mov	w2, #65531
	bl	_b43_radio_maskset
	mov	x0, x20
	mov	x1, x22
	bl	_b43_radio_2056_setup
	mov	x0, x20
	mov	x1, x22
	b	LBB0_27
LBB0_25:
	cmp	x9, x10
	mov	w8, #80
	mov	w9, #32
	csel	w3, w9, w8, eq
Lloh33:
	adrp	x8, _B2055_MASTER1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _B2055_MASTER1@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #65423
	bl	_b43_radio_maskset
	mov	x0, x20
	mov	x1, x21
	bl	_b43_radio_2055_setup
LBB0_26:
	mov	x0, x20
	mov	x1, x21
LBB0_27:
	mov	x2, x19
	bl	_b43_nphy_channel_setup
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ; @NL80211_CHAN_HT40PLUS
	.comm	_B43_NPHY_RXCTL,4,2             ; @B43_NPHY_RXCTL
	.comm	_B43_NPHY_RXCTL_BSELU20,4,2     ; @B43_NPHY_RXCTL_BSELU20
	.comm	_NL80211_CHAN_HT40MINUS,4,2     ; @NL80211_CHAN_HT40MINUS
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_R2057_TIA_CONFIG_CORE0,4,2     ; @R2057_TIA_CONFIG_CORE0
	.comm	_R2057_TIA_CONFIG_CORE1,4,2     ; @R2057_TIA_CONFIG_CORE1
	.comm	_B2055_MASTER1,4,2              ; @B2055_MASTER1
	.no_dead_strip	_b43_nphy_set_channel
.subsections_via_symbols
