	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_gphy_op_prepare_hardware
_b43_gphy_op_prepare_hardware:          ## @b43_gphy_op_prepare_hardware
	.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, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r15
	movq	16(%r15), %r14
	movq	_B43_PHYTYPE_G@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_B43_WARN_ON
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_default_baseband_attenuation
	leaq	4(%r15), %rsi
	movq	%rbx, %rdi
	callq	_default_radio_attenuation
	movq	%rbx, %rdi
	callq	_default_tx_control
	shll	$4, %eax
	movl	%eax, (%r15)
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_generate_rfatt_list
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_generate_bbatt_list
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_read32
	cmpl	$1, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	$0, 12(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b43_wireless_core_reset
	movq	%rbx, %rdi
	callq	_b43_phy_initg
	movl	$1, 12(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_b43_wireless_core_reset
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHYTYPE_G,8,3              ## @B43_PHYTYPE_G
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.no_dead_strip	_b43_gphy_op_prepare_hardware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_gphy_op_prepare_hardware
_b43_gphy_op_prepare_hardware:          ; @b43_gphy_op_prepare_hardware
	.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	x21, [x0, #16]
	ldr	x20, [x21, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _B43_PHYTYPE_G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_PHYTYPE_G@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_B43_WARN_ON
	add	x1, x21, #8
	mov	x0, x19
	bl	_default_baseband_attenuation
	add	x1, x21, #4
	mov	x0, x19
	bl	_default_radio_attenuation
	mov	x0, x19
	bl	_default_tx_control
	lsl	w8, w0, #4
	str	w8, [x21]
	add	x1, x20, #4
	mov	x0, x19
	bl	_generate_rfatt_list
	mov	x0, x19
	mov	x1, x20
	bl	_generate_bbatt_list
Lloh3:
	adrp	x8, _B43_MMIO_MACCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MMIO_MACCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_read32
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x19, #12]
	mov	x0, x19
	mov	w1, #0
	bl	_b43_wireless_core_reset
	mov	x0, x19
	bl	_b43_phy_initg
	mov	w8, #1
	str	w8, [x19, #12]
	mov	x0, x19
	mov	w1, #1
	bl	_b43_wireless_core_reset
LBB0_2:
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHYTYPE_G,8,3              ; @B43_PHYTYPE_G
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.no_dead_strip	_b43_gphy_op_prepare_hardware
.subsections_via_symbols
