	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_phy_calibrate        ## -- Begin function b43legacy_phy_calibrate
	.p2align	4, 0x90
_b43legacy_phy_calibrate:               ## @b43legacy_phy_calibrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_b43legacy_read32
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movq	_B43legacy_PHYTYPE_G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$1, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b43legacy_wireless_core_reset
	movq	%rbx, %rdi
	callq	_b43legacy_phy_initg
	movq	_B43legacy_TMSLOW_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_wireless_core_reset
LBB0_4:
	movl	$1, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ## @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_PHYTYPE_G,8,3        ## @B43legacy_PHYTYPE_G
	.comm	_B43legacy_TMSLOW_GMODE,4,2     ## @B43legacy_TMSLOW_GMODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_phy_calibrate        ; -- Begin function b43legacy_phy_calibrate
	.p2align	2
_b43legacy_phy_calibrate:               ; @b43legacy_phy_calibrate
	.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
Lloh0:
	adrp	x8, _B43legacy_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_MMIO_MACCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_b43legacy_read32
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _B43legacy_PHYTYPE_G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B43legacy_PHYTYPE_G@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_b43legacy_wireless_core_reset
	mov	x0, x19
	bl	_b43legacy_phy_initg
Lloh6:
	adrp	x8, _B43legacy_TMSLOW_GMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43legacy_TMSLOW_GMODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_wireless_core_reset
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ; @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_PHYTYPE_G,8,3        ; @B43legacy_PHYTYPE_G
	.comm	_B43legacy_TMSLOW_GMODE,4,2     ; @B43legacy_TMSLOW_GMODE
.subsections_via_symbols
