	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_radio_2059_rcal
_b43_radio_2059_rcal:                   ## @b43_radio_2059_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_R2059_C3@GOTPCREL(%rip), %r14
	movq	_R2059_RCAL_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%r14), %esi
	movl	$1, %edx
	callq	_b43_radio_set
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	$191, %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_b43_radio_set
	movl	$411, %esi                      ## imm = 0x19B
	orl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	movl	$2, %ecx
	callq	_b43_radio_maskset
	movl	(%r15), %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_b43_radio_set
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r15), %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-3, %edx
	callq	_b43_radio_mask
	movq	_R2059_RCAL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$100, %r8d
	movl	$1000000, %r9d                  ## imm = 0xF4240
	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
	orl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-2, %edx
	callq	_b43_radio_mask
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$96, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_radio_set                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R2059_C3,4,2                   ## @R2059_C3
	.comm	_R2059_RCAL_CONFIG,4,2          ## @R2059_RCAL_CONFIG
	.comm	_R2059_RCAL_STATUS,4,2          ## @R2059_RCAL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio 0x2059 rcal timeout\n"

	.no_dead_strip	_b43_radio_2059_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_2059_rcal
_b43_radio_2059_rcal:                   ; @b43_radio_2059_rcal
	.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
Lloh0:
	adrp	x20, _R2059_C3@GOTPAGE
Lloh1:
	ldr	x20, [x20, _R2059_C3@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _R2059_RCAL_CONFIG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _R2059_RCAL_CONFIG@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	w2, #1
	bl	_b43_radio_set
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w8, [x20]
	mov	w9, #191
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #1
	bl	_b43_radio_set
	ldr	w8, [x20]
	mov	w9, #411
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #3
	mov	w3, #2
	bl	_b43_radio_maskset
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #2
	bl	_b43_radio_set
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #-3
	bl	_b43_radio_mask
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _R2059_RCAL_STATUS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _R2059_RCAL_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #100
	mov	w5, #16960
	movk	w5, #15, lsl #16
	bl	_b43_radio_wait_value
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #-2
	bl	_b43_radio_mask
	mov	x0, x19
	mov	w1, #10
	mov	w2, #96
	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
	b	_b43_radio_set
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_R2059_C3,4,2                   ; @R2059_C3
	.comm	_R2059_RCAL_CONFIG,4,2          ; @R2059_RCAL_CONFIG
	.comm	_R2059_RCAL_STATUS,4,2          ; @R2059_RCAL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio 0x2059 rcal timeout\n"

	.no_dead_strip	_b43_radio_2059_rcal
.subsections_via_symbols
