	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1301_demod_init
_zd1301_demod_init:                     ## @zd1301_demod_init
	.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), %r15
	movq	(%r15), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	movl	$26688, %esi                    ## imm = 0x6840
	movl	$38, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	movl	$26848, %esi                    ## imm = 0x68E0
	movl	$255, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	movl	$26850, %esi                    ## imm = 0x68E2
	movl	$216, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	$26697, %esi                    ## imm = 0x6849
	movl	$78, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movl	$26702, %esi                    ## imm = 0x684E
	movl	$1, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_zd1301_demod_gain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$27203, %esi                    ## imm = 0x6A43
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_zd1301_demod_gain,4,2          ## @zd1301_demod_gain
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_zd1301_demod_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1301_demod_init
_zd1301_demod_init:                     ; @zd1301_demod_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x20, [x0]
	ldr	x19, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	mov	w1, #26688
	mov	w2, #38
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	mov	w1, #26848
	mov	w2, #255
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	w1, #26850
	mov	w2, #216
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	w1, #26697
	mov	w2, #78
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #26702
	mov	w2, #1
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _zd1301_demod_gain@GOTPAGE
Lloh3:
	ldr	x8, [x8, _zd1301_demod_gain@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #27203
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_6:
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_zd1301_demod_gain,4,2          ; @zd1301_demod_gain
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_zd1301_demod_init
.subsections_via_symbols
