	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_ht_channel_setup
_b43_phy_ht_channel_setup:              ## @b43_phy_ht_channel_setup
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_B43_PHY_HT_BANDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_PHY_HT_BANDCTL_5GHZ@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	notl	%edx
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	cmpq	%r12, %r14
	jne	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_b43_phy_ht_bphy_reset
	movq	_B43_PHY_HT_BANDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_set
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_b43_phy_ht_bphy_reset
LBB0_3:
	movq	_B43_PHY_HT_BW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_HT_BW2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_HT_BW3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_HT_BW4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_HT_BW5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_HT_BW6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43_phy_write
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	$14, 8(%r14)
	movq	_B43_PHY_HT_CLASS_CTL_OFDM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	callq	_b43_phy_ht_classifier
	movq	_B43_PHY_HT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_b43_phy_set
	jmp	LBB0_7
LBB0_5:
	movl	%esi, %edx
	callq	_b43_phy_ht_classifier
	movq	(%r14), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_B43_PHY_HT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-2113, %edx                    ## imm = 0xF7BF
	callq	_b43_phy_mask
LBB0_7:
	movq	%rbx, %rdi
	callq	_b43_phy_ht_tx_power_fix
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_b43_phy_ht_spur_avoid
	movq	%rbx, %rdi
	movl	$382, %esi                      ## imm = 0x17E
	movl	$14384, %edx                    ## imm = 0x3830
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_B43_PHY_HT_BANDCTL,4,2         ## @B43_PHY_HT_BANDCTL
	.comm	_B43_PHY_HT_BANDCTL_5GHZ,4,2    ## @B43_PHY_HT_BANDCTL_5GHZ
	.comm	_B43_PHY_HT_BW1,4,2             ## @B43_PHY_HT_BW1
	.comm	_B43_PHY_HT_BW2,4,2             ## @B43_PHY_HT_BW2
	.comm	_B43_PHY_HT_BW3,4,2             ## @B43_PHY_HT_BW3
	.comm	_B43_PHY_HT_BW4,4,2             ## @B43_PHY_HT_BW4
	.comm	_B43_PHY_HT_BW5,4,2             ## @B43_PHY_HT_BW5
	.comm	_B43_PHY_HT_BW6,4,2             ## @B43_PHY_HT_BW6
	.comm	_B43_PHY_HT_CLASS_CTL_OFDM_EN,4,2 ## @B43_PHY_HT_CLASS_CTL_OFDM_EN
	.comm	_B43_PHY_HT_TEST,4,2            ## @B43_PHY_HT_TEST
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.no_dead_strip	_b43_phy_ht_channel_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_ht_channel_setup
_b43_phy_ht_channel_setup:              ; @b43_phy_ht_channel_setup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x2]
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	adrp	x22, _B43_PHY_HT_BANDCTL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _B43_PHY_HT_BANDCTL@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _B43_PHY_HT_BANDCTL_5GHZ@GOTPAGE
Lloh6:
	ldr	x23, [x23, _B43_PHY_HT_BANDCTL_5GHZ@GOTPAGEOFF]
	ldr	w8, [x23]
	mvn	w2, w8
	bl	_b43_phy_mask
	mov	x0, x19
	cmp	x24, x25
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_b43_phy_ht_bphy_reset
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_b43_phy_set
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	bl	_b43_phy_ht_bphy_reset
LBB0_3:
Lloh7:
	adrp	x8, _B43_PHY_HT_BW1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B43_PHY_HT_BW1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_b43_phy_write
Lloh10:
	adrp	x8, _B43_PHY_HT_BW2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43_PHY_HT_BW2@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_b43_phy_write
Lloh13:
	adrp	x8, _B43_PHY_HT_BW3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _B43_PHY_HT_BW3@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_b43_phy_write
Lloh16:
	adrp	x8, _B43_PHY_HT_BW4@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_PHY_HT_BW4@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_b43_phy_write
Lloh19:
	adrp	x8, _B43_PHY_HT_BW5@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_PHY_HT_BW5@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x21, #16]
	mov	x0, x19
	bl	_b43_phy_write
Lloh22:
	adrp	x8, _B43_PHY_HT_BW6@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43_PHY_HT_BW6@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x21, #20]
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w8, [x20, #8]
Lloh25:
	adrp	x9, _B43_PHY_HT_CLASS_CTL_OFDM_EN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _B43_PHY_HT_CLASS_CTL_OFDM_EN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	mov	x0, x19
	cmp	w8, #14
	b.ne	LBB0_5
; %bb.4:
	mov	w2, #0
	bl	_b43_phy_ht_classifier
Lloh28:
	adrp	x8, _B43_PHY_HT_TEST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _B43_PHY_HT_TEST@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2048
	bl	_b43_phy_set
	b	LBB0_7
LBB0_5:
	mov	x2, x1
	bl	_b43_phy_ht_classifier
	ldr	x8, [x20]
Lloh31:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh34:
	adrp	x8, _B43_PHY_HT_TEST@GOTPAGE
Lloh35:
	ldr	x8, [x8, _B43_PHY_HT_TEST@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-2113
	bl	_b43_phy_mask
LBB0_7:
	mov	x0, x19
	bl	_b43_phy_ht_tx_power_fix
	mov	x0, x19
	mov	x1, x20
	bl	_b43_phy_ht_spur_avoid
	mov	x0, x19
	mov	w1, #382
	mov	w2, #14384
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_b43_phy_write
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_B43_PHY_HT_BANDCTL,4,2         ; @B43_PHY_HT_BANDCTL
	.comm	_B43_PHY_HT_BANDCTL_5GHZ,4,2    ; @B43_PHY_HT_BANDCTL_5GHZ
	.comm	_B43_PHY_HT_BW1,4,2             ; @B43_PHY_HT_BW1
	.comm	_B43_PHY_HT_BW2,4,2             ; @B43_PHY_HT_BW2
	.comm	_B43_PHY_HT_BW3,4,2             ; @B43_PHY_HT_BW3
	.comm	_B43_PHY_HT_BW4,4,2             ; @B43_PHY_HT_BW4
	.comm	_B43_PHY_HT_BW5,4,2             ; @B43_PHY_HT_BW5
	.comm	_B43_PHY_HT_BW6,4,2             ; @B43_PHY_HT_BW6
	.comm	_B43_PHY_HT_CLASS_CTL_OFDM_EN,4,2 ; @B43_PHY_HT_CLASS_CTL_OFDM_EN
	.comm	_B43_PHY_HT_TEST,4,2            ; @B43_PHY_HT_TEST
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.no_dead_strip	_b43_phy_ht_channel_setup
.subsections_via_symbols
