	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_radio_2057_rccal
_b43_radio_2057_rccal:                  ## @b43_radio_2057_rccal
	.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	%rdi, %rbx
	movq	_R2059_RCCAL_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$97, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_X1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$110, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_TRC0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$233, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_START_R1_Q1_P1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$85, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_DONE_OSCCAP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$2, %ecx
	movl	$500, %r8d                      ## imm = 0x1F4
	movl	$5000000, %r9d                  ## imm = 0x4C4B40
	callq	_b43_radio_wait_value
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$21, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$105, %edx
	callq	_b43_radio_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$110, %edx
	callq	_b43_radio_write
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$213, %edx
	callq	_b43_radio_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$85, %edx
	callq	_b43_radio_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$2, %ecx
	movl	$500, %r8d                      ## imm = 0x1F4
	movl	$5000000, %r9d                  ## imm = 0x4C4B40
	callq	_b43_radio_wait_value
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$21, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$115, %edx
	callq	_b43_radio_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$110, %edx
	callq	_b43_radio_write
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$153, %edx
	callq	_b43_radio_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$85, %edx
	callq	_b43_radio_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$2, %ecx
	movl	$500, %r8d                      ## imm = 0x1F4
	movl	$5000000, %r9d                  ## imm = 0x4C4B40
	callq	_b43_radio_wait_value
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_6:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$21, %edx
	callq	_b43_radio_write
	movq	_R2059_RCCAL_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-2, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_radio_mask                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R2059_RCCAL_MASTER,4,2         ## @R2059_RCCAL_MASTER
	.comm	_R2059_RCCAL_X1,4,2             ## @R2059_RCCAL_X1
	.comm	_R2059_RCCAL_TRC0,4,2           ## @R2059_RCCAL_TRC0
	.comm	_R2059_RCCAL_START_R1_Q1_P1,4,2 ## @R2059_RCCAL_START_R1_Q1_P1
	.comm	_R2059_RCCAL_DONE_OSCCAP,4,2    ## @R2059_RCCAL_DONE_OSCCAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio 0x2059 rccal timeout\n"

	.no_dead_strip	_b43_radio_2057_rccal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_radio_2057_rccal
_b43_radio_2057_rccal:                  ; @b43_radio_2057_rccal
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _R2059_RCCAL_MASTER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _R2059_RCCAL_MASTER@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #97
	bl	_b43_radio_write
Lloh2:
	adrp	x22, _R2059_RCCAL_X1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _R2059_RCCAL_X1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #110
	bl	_b43_radio_write
Lloh4:
	adrp	x23, _R2059_RCCAL_TRC0@GOTPAGE
Lloh5:
	ldr	x23, [x23, _R2059_RCCAL_TRC0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #233
	bl	_b43_radio_write
Lloh6:
	adrp	x21, _R2059_RCCAL_START_R1_Q1_P1@GOTPAGE
Lloh7:
	ldr	x21, [x21, _R2059_RCCAL_START_R1_Q1_P1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #85
	bl	_b43_radio_write
Lloh8:
	adrp	x24, _R2059_RCCAL_DONE_OSCCAP@GOTPAGE
Lloh9:
	ldr	x24, [x24, _R2059_RCCAL_DONE_OSCCAP@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #2
	mov	w4, #500
	mov	w5, #19264
	movk	w5, #76, lsl #16
	bl	_b43_radio_wait_value
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #21
	bl	_b43_radio_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #105
	bl	_b43_radio_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #110
	bl	_b43_radio_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #213
	bl	_b43_radio_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #85
	bl	_b43_radio_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #2
	mov	w4, #500
	mov	w5, #19264
	movk	w5, #76, lsl #16
	bl	_b43_radio_wait_value
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #21
	bl	_b43_radio_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #115
	bl	_b43_radio_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #110
	bl	_b43_radio_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #153
	bl	_b43_radio_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #85
	bl	_b43_radio_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #2
	mov	w4, #500
	mov	w5, #19264
	movk	w5, #76, lsl #16
	bl	_b43_radio_wait_value
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #21
	bl	_b43_radio_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #-2
	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
	b	_b43_radio_mask
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_R2059_RCCAL_MASTER,4,2         ; @R2059_RCCAL_MASTER
	.comm	_R2059_RCCAL_X1,4,2             ; @R2059_RCCAL_X1
	.comm	_R2059_RCCAL_TRC0,4,2           ; @R2059_RCCAL_TRC0
	.comm	_R2059_RCCAL_START_R1_Q1_P1,4,2 ; @R2059_RCCAL_START_R1_Q1_P1
	.comm	_R2059_RCCAL_DONE_OSCCAP,4,2    ; @R2059_RCCAL_DONE_OSCCAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio 0x2059 rccal timeout\n"

	.no_dead_strip	_b43_radio_2057_rccal
.subsections_via_symbols
