	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1301_demod_set_frontend
_zd1301_demod_set_frontend:             ## @zd1301_demod_set_frontend
	.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	24(%rdi), %r14
	movq	(%r14), %r12
	movl	16(%rdi), %ecx
	movl	20(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.3:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.4:
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$36150000, -44(%rbp)            ## imm = 0x2279AF0
	jne	LBB0_5
## %bb.6:
	movl	16(%rbx), %eax
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	je	LBB0_7
## %bb.8:
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	je	LBB0_11
## %bb.9:
	cmpl	$7000000, %eax                  ## imm = 0x6ACFC0
	jne	LBB0_31
## %bb.10:
	movl	$104, %r15d
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_32:
	subl	(%rax), %r13d
LBB0_33:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_34:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$120, %r15d
	jmp	LBB0_12
LBB0_11:
	movl	$88, %r15d
LBB0_12:
	movq	%r14, %rdi
	movl	$27232, %esi                    ## imm = 0x6A60
	movl	$17, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.13:
	movq	%r14, %rdi
	movl	$27207, %esi                    ## imm = 0x6A47
	movl	$70, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.14:
	movq	%r14, %rdi
	movl	$27208, %esi                    ## imm = 0x6A48
	movl	$70, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.15:
	movq	%r14, %rdi
	movl	$27210, %esi                    ## imm = 0x6A4A
	movl	$21, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.16:
	movq	%r14, %rdi
	movl	$27211, %esi                    ## imm = 0x6A4B
	movl	$99, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.17:
	movq	%r14, %rdi
	movl	$27227, %esi                    ## imm = 0x6A5B
	movl	$153, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.18:
	movq	%r14, %rdi
	movl	$27195, %esi                    ## imm = 0x6A3B
	movl	$16, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.19:
	movq	%r14, %rdi
	movl	$26630, %esi                    ## imm = 0x6806
	movl	$1, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.20:
	movq	%r14, %rdi
	movl	$27201, %esi                    ## imm = 0x6A41
	movl	$8, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.21:
	movq	%r14, %rdi
	movl	$27202, %esi                    ## imm = 0x6A42
	movl	$70, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.22:
	movq	%r14, %rdi
	movl	$27204, %esi                    ## imm = 0x6A44
	movl	$20, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.23:
	movq	%r14, %rdi
	movl	$27205, %esi                    ## imm = 0x6A45
	movl	$103, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.24:
	movq	%r14, %rdi
	movl	$27192, %esi                    ## imm = 0x6A38
	xorl	%edx, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.25:
	movq	%r14, %rdi
	movl	$27212, %esi                    ## imm = 0x6A4C
	movl	$82, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.26:
	movq	%r14, %rdi
	movl	$27209, %esi                    ## imm = 0x6A49
	movl	$42, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.27:
	movq	%r14, %rdi
	movl	$26688, %esi                    ## imm = 0x6840
	movl	$46, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.28:
	movq	%r14, %rdi
	movl	$27216, %esi                    ## imm = 0x6A50
	movl	%r15d, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.29:
	movq	%r14, %rdi
	movl	$27192, %esi                    ## imm = 0x6A38
	movl	$7, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.30:
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_31:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frequency=%u bandwidth_hz=%u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"if_frequency=%u\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed=%d\n"

	.no_dead_strip	_zd1301_demod_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1301_demod_set_frontend
_zd1301_demod_set_frontend:             ; @zd1301_demod_set_frontend
	.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
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldr	x19, [x20]
	ldp	w8, w2, [x0, #16]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_9
; %bb.2:
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	x8, [x21, #8]
	add	x1, sp, #12
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w2, [sp, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	mov	w9, #39664
	movk	w9, #551, lsl #16
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x21, #16]
	sub	w9, w8, #1464, lsl #12          ; =5996544
	cmp	w9, #3456
	b.eq	LBB0_12
; %bb.6:
	mov	w9, #4608
	movk	w9, #122, lsl #16
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.7:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	mov	w21, #104
	b	LBB0_14
LBB0_9:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
LBB0_11:
	mov	x0, x22
	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
LBB0_12:
	mov	w21, #120
	b	LBB0_14
LBB0_13:
	mov	w21, #88
LBB0_14:
	mov	x0, x20
	mov	w1, #27232
	mov	w2, #17
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.15:
	mov	x0, x20
	mov	w1, #27207
	mov	w2, #70
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.16:
	mov	x0, x20
	mov	w1, #27208
	mov	w2, #70
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.17:
	mov	x0, x20
	mov	w1, #27210
	mov	w2, #21
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.18:
	mov	x0, x20
	mov	w1, #27211
	mov	w2, #99
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.19:
	mov	x0, x20
	mov	w1, #27227
	mov	w2, #153
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.20:
	mov	x0, x20
	mov	w1, #27195
	mov	w2, #16
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.21:
	mov	x0, x20
	mov	w1, #26630
	mov	w2, #1
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.22:
	mov	x0, x20
	mov	w1, #27201
	mov	w2, #8
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.23:
	mov	x0, x20
	mov	w1, #27202
	mov	w2, #70
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.24:
	mov	x0, x20
	mov	w1, #27204
	mov	w2, #20
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.25:
	mov	x0, x20
	mov	w1, #27205
	mov	w2, #103
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.26:
	mov	x0, x20
	mov	w1, #27192
	mov	w2, #0
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.27:
	mov	x0, x20
	mov	w1, #27212
	mov	w2, #82
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.28:
	mov	x0, x20
	mov	w1, #27209
	mov	w2, #42
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.29:
	mov	x0, x20
	mov	w1, #26688
	mov	w2, #46
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.30:
	mov	x0, x20
	mov	w1, #27216
	mov	x2, x21
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.31:
	mov	x0, x20
	mov	w1, #27192
	mov	w2, #7
	bl	_zd1301_demod_wreg
	mov	x22, x0
	cbnz	w0, LBB0_10
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frequency=%u bandwidth_hz=%u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"if_frequency=%u\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed=%d\n"

	.no_dead_strip	_zd1301_demod_set_frontend
.subsections_via_symbols
