	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_radio_2056_rcal
_b43_radio_2056_rcal:                   ## @b43_radio_2056_rcal
	.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
	xorl	%r14d, %r14d
	cmpl	$3, 4(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_B2056_SYN_PLL_MAST2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_b43_radio_read
	movl	%eax, %r15d
	movl	(%r12), %esi
	movl	%eax, %edx
	orl	$7, %edx
	movq	%rbx, %rdi
	callq	_b43_radio_write
	movl	$10, %edi
	callq	_udelay
	movq	_B2056_SYN_RCAL_MASTER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_b43_radio_write
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_b43_radio_write
	movq	_B2056_SYN_RCAL_CODE_OUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	movl	$128, %ecx
	movl	$100, %r8d
	movl	$1000000, %r9d                  ## imm = 0xF4240
	callq	_b43_radio_wait_value
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_b43_radio_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_b43_radio_read
	movl	%eax, %r14d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_radio_write
	movq	_B2056_SYN_PLL_MAST2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_b43_radio_write
	andl	$31, %r14d
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B2056_SYN_PLL_MAST2,4,2        ## @B2056_SYN_PLL_MAST2
	.comm	_B2056_SYN_RCAL_MASTER,4,2      ## @B2056_SYN_RCAL_MASTER
	.comm	_B2056_SYN_RCAL_CODE_OUT,4,2    ## @B2056_SYN_RCAL_CODE_OUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio recalibration timeout\n"

	.no_dead_strip	_b43_radio_2056_rcal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_radio_2056_rcal
_b43_radio_2056_rcal:                   ; @b43_radio_2056_rcal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #4]
	cmp	w8, #3
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _B2056_SYN_PLL_MAST2@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B2056_SYN_PLL_MAST2@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_b43_radio_read
	mov	x20, x0
	ldr	w1, [x22]
	orr	w2, w0, #0x7
	mov	x0, x19
	bl	_b43_radio_write
	mov	w0, #10
	bl	_udelay
Lloh2:
	adrp	x23, _B2056_SYN_RCAL_MASTER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _B2056_SYN_RCAL_MASTER@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_b43_radio_write
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #9
	bl	_b43_radio_write
Lloh4:
	adrp	x21, _B2056_SYN_RCAL_CODE_OUT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _B2056_SYN_RCAL_CODE_OUT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #128
	mov	w3, #128
	mov	w4, #100
	mov	w5, #16960
	movk	w5, #15, lsl #16
	bl	_b43_radio_wait_value
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_b43_radio_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_radio_read
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_radio_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_radio_write
	and	w0, w21, #0x1f
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_B2056_SYN_PLL_MAST2,4,2        ; @B2056_SYN_PLL_MAST2
	.comm	_B2056_SYN_RCAL_MASTER,4,2      ; @B2056_SYN_RCAL_MASTER
	.comm	_B2056_SYN_RCAL_CODE_OUT,4,2    ; @B2056_SYN_RCAL_CODE_OUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio recalibration timeout\n"

	.no_dead_strip	_b43_radio_2056_rcal
.subsections_via_symbols
