	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calibrate_as3935
_calibrate_as3935:                      ## @calibrate_as3935
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_AS3935_DEFAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$150, %edx
	callq	_as3935_write
	movq	_AS3935_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$150, %edx
	callq	_as3935_write
	movq	_AS3935_TUNE_CAP@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ecx
	movl	(%rbx), %eax
	movq	_TUNE_CAP_DIV@GOTPCREL(%rip), %r12
	cltd
	idivl	(%r12)
	orl	%eax, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%ecx, %edx
	callq	_as3935_write
	movl	$2, %edi
	callq	_mdelay
	movl	(%r15), %esi
	movl	(%rbx), %eax
	cltd
	idivl	(%r12)
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_as3935_write
	movq	_AS3935_NFLWDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_as3935_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AS3935_DEFAULTS,4,2            ## @AS3935_DEFAULTS
	.comm	_AS3935_CALIBRATE,4,2           ## @AS3935_CALIBRATE
	.comm	_AS3935_TUNE_CAP,4,2            ## @AS3935_TUNE_CAP
	.comm	_TUNE_CAP_DIV,4,2               ## @TUNE_CAP_DIV
	.comm	_AS3935_NFLWDTH,4,2             ## @AS3935_NFLWDTH
	.no_dead_strip	_calibrate_as3935
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calibrate_as3935
_calibrate_as3935:                      ; @calibrate_as3935
	.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	x8, _AS3935_DEFAULTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AS3935_DEFAULTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #150
	bl	_as3935_write
Lloh3:
	adrp	x8, _AS3935_CALIBRATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AS3935_CALIBRATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #150
	bl	_as3935_write
Lloh6:
	adrp	x21, _AS3935_TUNE_CAP@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AS3935_TUNE_CAP@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	w0, #5
	bl	_BIT
	ldr	w8, [x19]
Lloh8:
	adrp	x22, _TUNE_CAP_DIV@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TUNE_CAP_DIV@GOTPAGEOFF]
	ldr	w9, [x22]
	sdiv	w8, w8, w9
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_as3935_write
	mov	w0, #2
	bl	_mdelay
	ldr	w1, [x21]
	ldr	w8, [x19]
	ldr	w9, [x22]
	sdiv	w2, w8, w9
	mov	x0, x19
	bl	_as3935_write
Lloh10:
	adrp	x8, _AS3935_NFLWDTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AS3935_NFLWDTH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	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	_as3935_write
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AS3935_DEFAULTS,4,2            ; @AS3935_DEFAULTS
	.comm	_AS3935_CALIBRATE,4,2           ; @AS3935_CALIBRATE
	.comm	_AS3935_TUNE_CAP,4,2            ; @AS3935_TUNE_CAP
	.comm	_TUNE_CAP_DIV,4,2               ; @TUNE_CAP_DIV
	.comm	_AS3935_NFLWDTH,4,2             ; @AS3935_NFLWDTH
	.no_dead_strip	_calibrate_as3935
.subsections_via_symbols
