	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_dvb_set_params
_simple_dvb_set_params:                 ## @simple_dvb_set_params
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	16(%rdi), %r12
	cmpq	$0, 24(%r12)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	24(%rdi), %rdx
	movq	32(%rdi), %r15
	movq	40(%rdi), %rcx
	movups	(%r12), %xmm0
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	leaq	-60(%rbp), %r14
	movq	%r14, %rsi
	movq	%r15, %r8
	callq	_simple_dvb_configure
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	16(%r12), %ecx
	movl	%ecx, -64(%rbp)
	movq	%rax, (%r12)
	movq	%r15, 8(%r12)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_5:
	leaq	16(%r12), %r15
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_tuner_i2c_xfer_send
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$4, %ecx
	je	LBB0_9
## %bb.8:
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, (%r12)
	movl	%ecx, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_simple_dvb_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_dvb_set_params
_simple_dvb_set_params:                 ; @simple_dvb_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x23, [x0, #16]
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldp	x2, x22, [x0, #24]
	ldr	x3, [x0, #40]
	ldr	q0, [x23]
	str	q0, [sp]                        ; 16-byte Folded Spill
	add	x8, sp, #20
	add	x20, x8, #4
	mov	x1, x20
	mov	x4, x22
	bl	_simple_dvb_configure
	cbz	x0, LBB0_8
; %bb.2:
	add	x21, x23, #16
	ldr	w8, [x23, #16]
	str	w8, [sp, #20]
	stp	x0, x22, [x23]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	bl	_tuner_i2c_xfer_send
	cmp	w0, #4
	b.ne	LBB0_9
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x23]
LBB0_10:
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_simple_dvb_set_params
.subsections_via_symbols
