	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drxk_set_parameters
_drxk_set_parameters:                   ## @drxk_set_parameters
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	32(%rdi), %r12d
	movq	24(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	(%r14), %rax
	movq	_DRXK_NO_DEV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_2:
	movq	_DRXK_UNINITIALIZED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_4:
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.5:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_7:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	*%rax
LBB0_9:
	leaq	32(%r15), %rbx
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_11:
	movl	24(%r14), %eax
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	32(%rbx), %xmm2
	movups	48(%rbx), %xmm3
	movups	%xmm1, 40(%r14)
	movups	%xmm2, 56(%r14)
	movups	%xmm3, 72(%r14)
	movq	64(%rbx), %rcx
	movq	%rcx, 88(%r14)
	movups	%xmm0, 24(%r14)
	cmpl	%r12d, %eax
	je	LBB0_25
## %bb.12:
	movq	%r14, %rdi
	callq	_shut_down
	leal	-129(%r12), %eax
	cmpl	$2, %eax
	jae	LBB0_17
## %bb.13:
	cmpl	$0, 16(%r14)
	je	LBB0_20
## %bb.14:
	xorl	%eax, %eax
	cmpl	$129, %r12d
	sete	%al
	movl	%eax, 8(%r14)
	jne	LBB0_23
## %bb.15:
	movq	_OM_QAM_ITU_C@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpl	$128, %r12d
	jne	LBB0_20
## %bb.18:
	cmpl	$0, 12(%r14)
	je	LBB0_20
## %bb.19:
	movq	_OM_DVBT@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_OM_QAM_ITU_A@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_setoperation_mode
LBB0_25:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	-36(%rbp), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_start
	movq	_FE_SCALE_RELATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	96(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	88(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	80(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	72(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	64(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	56(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	48(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	40(%r15), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_DRXK_NO_DEV,8,3                ## @DRXK_NO_DEV
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DRXK_UNINITIALIZED,8,3         ## @DRXK_UNINITIALIZED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Error: get_if_frequency() not defined at tuner. Can't work without it!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OM_QAM_ITU_C,4,2               ## @OM_QAM_ITU_C
	.comm	_OM_QAM_ITU_A,4,2               ## @OM_QAM_ITU_A
	.comm	_OM_DVBT,4,2                    ## @OM_DVBT
	.comm	_FE_SCALE_RELATIVE,4,2          ## @FE_SCALE_RELATIVE
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.no_dead_strip	_drxk_set_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drxk_set_parameters
_drxk_set_parameters:                   ; @drxk_set_parameters
	.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	x19, x0
	mov	x22, x0
	ldr	w21, [x22, #32]!
	ldur	x20, [x22, #-8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _DRXK_NO_DEV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRXK_NO_DEV@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
Lloh7:
	adrp	x9, _DRXK_UNINITIALIZED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DRXK_UNINITIALIZED@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_11:
	ldr	w8, [x20, #24]
	ldp	q1, q0, [x22, #32]
	ldr	x9, [x22, #64]
	ldr	q2, [x22, #16]
	stur	q2, [x20, #40]
	str	x9, [x20, #88]
	stur	q0, [x20, #72]
	stur	q1, [x20, #56]
	ldr	q0, [x22]
	stur	q0, [x20, #24]
	cmp	w8, w21
	b.eq	LBB0_23
; %bb.12:
	mov	x0, x20
	bl	_shut_down
	sub	w8, w21, #129
	cmp	w8, #2
	b.hs	LBB0_19
; %bb.13:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_16
; %bb.14:
	cmp	w21, #129
	cset	w8, eq
	str	w8, [x20, #8]
Lloh12:
	adrp	x8, _OM_QAM_ITU_A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OM_QAM_ITU_A@GOTPAGEOFF]
Lloh14:
	adrp	x9, _OM_QAM_ITU_C@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OM_QAM_ITU_C@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_22
LBB0_15:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_16:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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_19:
	cmp	w21, #128
	b.ne	LBB0_16
; %bb.20:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_16
; %bb.21:
Lloh20:
	adrp	x8, _OM_DVBT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OM_DVBT@GOTPAGEOFF]
LBB0_22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_setoperation_mode
LBB0_23:
	ldr	x8, [x19]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_start
	mov	w0, #0
Lloh22:
	adrp	x8, _FE_SCALE_RELATIVE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FE_SCALE_RELATIVE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldp	x10, x9, [x19, #88]
	str	w8, [x9]
Lloh25:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x10]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #72]
	str	x9, [x10]
	ldr	x9, [x8]
	str	x9, [x11]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #56]
	str	x9, [x10]
	ldr	x9, [x8]
	str	x9, [x11]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #40]
	str	x9, [x10]
	ldr	x8, [x8]
	str	x8, [x11]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_DRXK_NO_DEV,8,3                ; @DRXK_NO_DEV
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DRXK_UNINITIALIZED,8,3         ; @DRXK_UNINITIALIZED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Error: get_if_frequency() not defined at tuner. Can't work without it!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OM_QAM_ITU_C,4,2               ; @OM_QAM_ITU_C
	.comm	_OM_QAM_ITU_A,4,2               ; @OM_QAM_ITU_A
	.comm	_OM_DVBT,4,2                    ; @OM_DVBT
	.comm	_FE_SCALE_RELATIVE,4,2          ; @FE_SCALE_RELATIVE
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.no_dead_strip	_drxk_set_parameters
.subsections_via_symbols
