	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x_tune3
_x_tune3:                               ## @x_tune3
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rdi, %r12
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r13
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_x_tune3_seq@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	(%r12), %rdi
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_CXD2880_DTV_SYS_DVBT2@GOTPCREL(%rip), %r14
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14)
	sete	%al
	testl	%r15d, %r15d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %esi
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_memset
	movq	(%r12), %rdi
	movl	(%rbx), %esi
	movl	$239, %edx
	movq	%r13, %rcx
	movl	$6, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	(%r12), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$45, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	testl	%r15d, %r15d
	sete	%al
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%r14)
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %ecx
	movl	%ecx, -80(%rbp)
	movq	(%r12), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$177, %edx
	callq	*(%rdi)
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_x_tune3_seq,4,2                ## @x_tune3_seq
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_DTV_SYS_DVBT2,4,2      ## @CXD2880_DTV_SYS_DVBT2
	.no_dead_strip	_x_tune3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x_tune3
_x_tune3:                               ; @x_tune3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh3:
	adrp	x25, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w23, [x25]
Lloh5:
	adrp	x8, _x_tune3_seq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _x_tune3_seq@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh8:
	adrp	x23, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #16
	blr	x8
	cbnz	w0, LBB0_7
; %bb.3:
Lloh10:
	adrp	x22, _CXD2880_DTV_SYS_DVBT2@GOTPAGE
Lloh11:
	ldr	x22, [x22, _CXD2880_DTV_SYS_DVBT2@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, #0
	ccmp	w8, w20, #0, ne
	cset	w1, eq
	mov	x0, sp
	mov	w2, #24
	bl	_memset
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	mov	x3, sp
	mov	w2, #239
	mov	w4, #6
	blr	x8
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	w1, [x25]
	mov	w2, #0
	mov	w3, #45
	blr	x8
	cbnz	w0, LBB0_7
; %bb.5:
	cmp	w21, #0
	ldr	w8, [x22]
	ccmp	w8, w20, #0, ne
	cset	w3, ne
	str	w3, [sp]
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	w1, [x25]
	mov	w2, #177
	blr	x8
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_x_tune3_seq,4,2                ; @x_tune3_seq
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_DTV_SYS_DVBT2,4,2      ; @CXD2880_DTV_SYS_DVBT2
	.no_dead_strip	_x_tune3
.subsections_via_symbols
