	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24120_set_frontend
_cx24120_set_frontend:                  ## @cx24120_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movl	8(%rdi), %edx
	cmpl	$128, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_9
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	56(%r14), %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %eax
	movl	%eax, 64(%r14)
	movl	24(%r15), %eax
	movl	%eax, 76(%r14)
	movl	32(%r15), %eax
	movl	%eax, 72(%r14)
	movl	16(%r15), %eax
	movl	%eax, 68(%r14)
	movl	28(%r15), %esi
	movq	%r14, %rdi
	callq	_cx24120_set_inversion
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	20(%r15), %edx
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_cx24120_set_fec
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_cx24120_set_pilot
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	12(%r15), %esi
	movq	%r14, %rdi
	callq	_cx24120_set_symbolrate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	leaq	56(%r14), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_cx24120_set_frontend.cold.1
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	56(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function cx24120_set_frontend.cold.1
_cx24120_set_frontend.cold.1:           ## @cx24120_set_frontend.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_cx24120_clone_params
	movq	(%r14), %rdi
	movl	52(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	movl	48(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	movl	4(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	movl	8(%rbx), %edx
	movl	12(%rbx), %ecx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	movl	16(%rbx), %edx
	movl	20(%rbx), %ecx
	movl	24(%rbx), %r8d
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	movl	44(%rbx), %edx
	movl	28(%rbx), %ecx
	movl	32(%rbx), %r8d
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rdi
	movl	36(%rbx), %edx
	movl	40(%rbx), %ecx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DVB-S2\n"

L_.str.1:                               ## @.str.1
	.asciz	"DVB-S\n"

L_.str.2:                               ## @.str.2
	.asciz	"delivery system(%d) not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"delsys      = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"modulation  = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"frequency   = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"pilot       = %d (val = 0x%02x)\n"

L_.str.7:                               ## @.str.7
	.asciz	"symbol_rate = %d (clkdiv/ratediv = 0x%02x/0x%02x)\n"

L_.str.8:                               ## @.str.8
	.asciz	"FEC         = %d (mask/val = 0x%02x/0x%02x)\n"

L_.str.9:                               ## @.str.9
	.asciz	"Inversion   = %d (val = 0x%02x)\n"

	.comm	_CMD_TUNEREQUEST,4,2            ## @CMD_TUNEREQUEST
	.comm	_CX24120_SEARCH_RANGE_KHZ,4,2   ## @CX24120_SEARCH_RANGE_KHZ
	.comm	_CX24120_REG_CLKDIV,4,2         ## @CX24120_REG_CLKDIV
	.comm	_CX24120_REG_RATEDIV,4,2        ## @CX24120_REG_RATEDIV
	.no_dead_strip	_cx24120_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24120_set_frontend
_cx24120_set_frontend:                  ; @cx24120_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	x20, x0
	ldr	x19, [x0]
	ldr	w8, [x0, #8]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x21, x19
	ldr	x0, [x21, #56]!
	bl	_dev_dbg
	ldr	w8, [x20, #8]
	ldp	w1, w9, [x20, #28]
	ldr	w10, [x20, #24]
	stp	w9, w10, [x19, #72]
	ldr	w9, [x20, #16]
	stp	w8, w9, [x19, #64]
	mov	x0, x19
	bl	_cx24120_set_inversion
	cbnz	w0, LBB0_10
; %bb.5:
	ldp	w2, w1, [x20, #20]
	mov	x0, x19
	bl	_cx24120_set_fec
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_cx24120_set_pilot
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_cx24120_set_symbolrate
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_cx24120_set_frontend.cold.1
LBB0_9:
	ldr	x0, [x19, #56]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function cx24120_set_frontend.cold.1
_cx24120_set_frontend.cold.1:           ; @cx24120_set_frontend.cold.1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	mov	x20, x1
	bl	_cx24120_clone_params
	ldr	x0, [x20]
	ldr	w8, [x19, #52]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20]
	ldr	w8, [x19, #48]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20]
	ldp	w8, w9, [x19, #8]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20]
	ldp	w8, w9, [x19, #16]
	ldr	w10, [x19, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20]
	ldr	w8, [x19, #44]
	ldp	w9, w10, [x19, #28]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20]
	ldp	w8, w9, [x19, #36]
	stp	x8, x9, [sp]
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_dbg
	brk	#0x1
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DVB-S2\n"

l_.str.1:                               ; @.str.1
	.asciz	"DVB-S\n"

l_.str.2:                               ; @.str.2
	.asciz	"delivery system(%d) not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"delsys      = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"modulation  = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"frequency   = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"pilot       = %d (val = 0x%02x)\n"

l_.str.7:                               ; @.str.7
	.asciz	"symbol_rate = %d (clkdiv/ratediv = 0x%02x/0x%02x)\n"

l_.str.8:                               ; @.str.8
	.asciz	"FEC         = %d (mask/val = 0x%02x/0x%02x)\n"

l_.str.9:                               ; @.str.9
	.asciz	"Inversion   = %d (val = 0x%02x)\n"

	.comm	_CMD_TUNEREQUEST,4,2            ; @CMD_TUNEREQUEST
	.comm	_CX24120_SEARCH_RANGE_KHZ,4,2   ; @CX24120_SEARCH_RANGE_KHZ
	.comm	_CX24120_REG_CLKDIV,4,2         ; @CX24120_REG_CLKDIV
	.comm	_CX24120_REG_RATEDIV,4,2        ; @CX24120_REG_RATEDIV
	.no_dead_strip	_cx24120_set_frontend
.subsections_via_symbols
