	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_hardware_pctl_init_gphy
_b43_hardware_pctl_init_gphy:           ## @b43_hardware_pctl_init_gphy
	.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, %rbx
	movq	8(%rdi), %r14
	callq	_b43_has_hardware_pctl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rcx
	subq	(%r14), %rcx
	movq	%rbx, %rdi
	movl	$54, %esi
	movl	$65472, %edx                    ## imm = 0xFFC0
	callq	_b43_phy_maskset
	movq	8(%r14), %rcx
	subq	(%r14), %rcx
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	$65280, %edx                    ## imm = 0xFF00
	callq	_b43_phy_maskset
	movq	%rbx, %rdi
	callq	_b43_gphy_tssi_power_lt_init
	movq	%rbx, %rdi
	callq	_b43_gphy_gain_lt_init
	movq	%rbx, %rdi
	movl	$96, %esi
	movl	$65471, %edx                    ## imm = 0xFFBF
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_b43_phy_write
	xorl	%edi, %edi
	cmpl	$6, (%rbx)
	setl	%dil
	callq	_B43_WARN_ON
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	$2048, %edx                     ## imm = 0x800
	callq	_b43_phy_set
	movq	%rbx, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	$65279, %edx                    ## imm = 0xFEFF
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	movl	$2049, %esi                     ## imm = 0x801
	movl	$65471, %edx                    ## imm = 0xFFBF
	callq	_b43_phy_mask
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_b43_gphy_dc_lt_init
	movq	%rbx, %rdi
	callq	_b43_hf_read
	movl	%eax, %esi
	movq	_B43_HF_HWPCTL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_b43_hf_read
	movq	_B43_HF_HWPCTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_hf_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_HF_HWPCTL,4,2              ## @B43_HF_HWPCTL
	.no_dead_strip	_b43_hardware_pctl_init_gphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_hardware_pctl_init_gphy
_b43_hardware_pctl_init_gphy:           ; @b43_hardware_pctl_init_gphy
	.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
	ldr	x20, [x0, #8]
	bl	_b43_has_hardware_pctl
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x9, x8, [x20]
	sub	x3, x8, x9
	mov	x0, x19
	mov	w1, #54
	mov	w2, #65472
	bl	_b43_phy_maskset
	ldp	x9, x8, [x20]
	sub	x3, x8, x9
	mov	x0, x19
	mov	w1, #1144
	mov	w2, #65280
	bl	_b43_phy_maskset
	mov	x0, x19
	bl	_b43_gphy_tssi_power_lt_init
	mov	x0, x19
	bl	_b43_gphy_gain_lt_init
	mov	x0, x19
	mov	w1, #96
	mov	w2, #65471
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #20
	mov	w2, #0
	bl	_b43_phy_write
	ldr	w8, [x19]
	cmp	w8, #6
	cset	w0, lt
	bl	_B43_WARN_ON
	mov	x0, x19
	mov	w1, #1144
	mov	w2, #2048
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #1144
	mov	w2, #65279
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #2049
	mov	w2, #65471
	bl	_b43_phy_mask
	mov	x0, x19
	mov	w1, #1
	bl	_b43_gphy_dc_lt_init
	mov	x0, x19
	bl	_b43_hf_read
Lloh0:
	adrp	x8, _B43_HF_HWPCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_HF_HWPCTL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_b43_hf_read
Lloh3:
	adrp	x8, _B43_HF_HWPCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_HF_HWPCTL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w1, w0, w8
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_hf_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_HF_HWPCTL,4,2              ; @B43_HF_HWPCTL
	.no_dead_strip	_b43_hardware_pctl_init_gphy
.subsections_via_symbols
