	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function x_tune1
LCPI0_0:
	.long	31                              ## 0x1f
	.long	128                             ## 0x80
	.long	24                              ## 0x18
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_x_tune1:                               ## @x_tune1
	.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	$72, %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
	movups	%xmm0, -68(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	%r8d, -108(%rbp)                ## 4-byte Spill
	movl	%ecx, -112(%rbp)                ## 4-byte Spill
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movl	%r9d, -104(%rbp)                ## 4-byte Spill
	movq	(%rdi), %r14
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_x_tune1_seq1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	(%rbx), %rdi
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movl	$14, -88(%rbp)
	movl	$3, -80(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-96(%rbp), %rcx
	movl	$231, %edx
	movl	$5, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [31,128,24,0]
	movaps	%xmm0, -96(%rbp)
	movl	$7, -80(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-96(%rbp), %rcx
	movl	$231, %edx
	movl	$5, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movabsq	$554050781298, %rax             ## imm = 0x8100000072
	movq	%rax, -96(%rbp)
	movabsq	$476741369885, %rax             ## imm = 0x6F0000001D
	movq	%rax, -84(%rbp)
	movl	$126, -76(%rbp)
	movl	$28, -68(%rbp)
	cmpl	$129, %r13d
	je	LBB0_7
## %bb.8:
	cmpl	$128, %r13d
	jne	LBB0_1
## %bb.9:
	movl	$147, %eax
	movl	$150, %ecx
	jmp	LBB0_10
LBB0_7:
	movl	$145, %eax
	movl	$148, %ecx
LBB0_10:
	movl	%ecx, -88(%rbp)
	movl	%eax, -72(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-96(%rbp), %rcx
	movl	$68, %edx
	movl	$8, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	(%rbx), %r13
	movl	(%r14), %r15d
	movq	_x_tune1_seq2@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movabsq	$970662608899, %rax             ## imm = 0xE200000003
	movq	%rax, -96(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-96(%rbp), %rcx
	movl	$30, %edx
	movl	$2, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	xorl	%eax, %eax
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	setne	%al
	movl	%eax, -96(%rbp)
	movabsq	$459561500672, %rax             ## imm = 0x6B00000000
	movq	%rax, -92(%rbp)
	movl	$77, -84(%rbp)
	movl	-112(%rbp), %eax                ## 4-byte Reload
	addl	$-130, %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.15:
	cltq
	leaq	l_switch.table.x_tune1(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -80(%rbp)
	movl	$0, -76(%rbp)
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	addl	-100(%rbp), %ecx                ## 4-byte Folded Reload
	movl	%ecx, %eax
	shrl	$16, %eax
	andl	$15, %eax
	movl	%eax, -72(%rbp)
	movzbl	%ch, %eax
	movl	%eax, -68(%rbp)
	movzbl	%cl, %eax
	movl	%eax, -64(%rbp)
	movabsq	$1090921693439, %rax            ## imm = 0xFE000000FF
	movq	%rax, -60(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-96(%rbp), %rcx
	movl	$82, %edx
	movl	$11, %r8d
	callq	*8(%rdi)
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	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_tune1_seq1,4,2               ## @x_tune1_seq1
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_x_tune1_seq2,4,2               ## @x_tune1_seq2
	.no_dead_strip	_x_tune1
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.x_tune1
l_switch.table.x_tune1:
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function x_tune1
lCPI0_0:
	.long	31                              ; 0x1f
	.long	128                             ; 0x80
	.long	24                              ; 0x18
	.long	0                               ; 0x0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	114                             ; 0x72
	.long	129                             ; 0x81
lCPI0_2:
	.long	29                              ; 0x1d
	.long	111                             ; 0x6f
lCPI0_3:
	.long	3                               ; 0x3
	.long	226                             ; 0xe2
lCPI0_4:
	.long	0                               ; 0x0
	.long	107                             ; 0x6b
lCPI0_5:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_6:
	.long	15                              ; 0xf
	.long	255                             ; 0xff
lCPI0_7:
	.long	255                             ; 0xff
	.long	254                             ; 0xfe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_x_tune1:                               ; @x_tune1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #28]
	stp	q0, q0, [sp]
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x5
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x25, [x0]
Lloh3:
	adrp	x8, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _x_tune1_seq1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _x_tune1_seq1@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	mov	x0, x27
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_16
; %bb.2:
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh9:
	adrp	x27, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh10:
	ldr	x27, [x27, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w2, #0
	mov	w3, #16
	blr	x8
	cbnz	w0, LBB0_16
; %bb.3:
	mov	w8, #14
	mov	w9, #3
	str	w8, [sp, #8]
	str	w9, [sp, #16]
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	w1, [x27]
	mov	x3, sp
	mov	w2, #231
	mov	w4, #5
	blr	x8
	cbnz	w0, LBB0_16
; %bb.4:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	mov	w8, #7
	str	w8, [sp, #16]
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	w1, [x27]
	mov	x3, sp
	mov	w2, #231
	mov	w4, #5
	blr	x8
	cbnz	w0, LBB0_16
; %bb.5:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
Lloh13:
	adrp	x8, lCPI0_1@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp]
Lloh15:
	adrp	x8, lCPI0_2@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	stur	d0, [sp, #12]
	mov	w8, #126
	mov	w9, #28
	str	w8, [sp, #20]
	str	w9, [sp, #28]
	cmp	w24, #129
	b.eq	LBB0_8
; %bb.6:
	cmp	w24, #128
	b.ne	LBB0_15
; %bb.7:
	mov	w8, #147
	mov	w9, #150
	b	LBB0_9
LBB0_8:
	mov	w8, #145
	mov	w9, #148
LBB0_9:
	str	w9, [sp, #8]
	str	w8, [sp, #24]
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	w1, [x27]
	mov	x3, sp
	mov	w2, #68
	mov	w4, #8
	blr	x8
	cbnz	w0, LBB0_16
; %bb.10:
	ldr	x24, [x19]
	ldr	w25, [x27]
Lloh17:
	adrp	x8, _x_tune1_seq2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _x_tune1_seq2@GOTPAGEOFF]
Lloh19:
	ldr	w26, [x8]
	mov	x0, x26
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_16
; %bb.11:
Lloh20:
	adrp	x8, lCPI0_3@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	str	d0, [sp]
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	w1, [x27]
	mov	x3, sp
	mov	w2, #30
	mov	w4, #2
	blr	x8
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	w1, [x27]
	mov	w2, #0
	mov	w3, #16
	blr	x8
	cbnz	w0, LBB0_16
; %bb.13:
	cmp	w23, #0
	cset	w8, ne
	str	w8, [sp]
Lloh22:
	adrp	x8, lCPI0_4@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_4@PAGEOFF]
	stur	d0, [sp, #4]
	mov	w8, #77
	str	w8, [sp, #12]
	sub	w8, w22, #130
	cmp	w8, #5
	b.hs	LBB0_15
; %bb.14:
Lloh24:
	adrp	x9, l_switch.table.x_tune1@PAGE
Lloh25:
	add	x9, x9, l_switch.table.x_tune1@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	stp	w8, wzr, [sp, #16]
	add	w8, w20, w21
	dup.2s	v0, w8
Lloh26:
	adrp	x9, lCPI0_5@PAGE
Lloh27:
	ldr	d1, [x9, lCPI0_5@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh28:
	adrp	x9, lCPI0_6@PAGE
Lloh29:
	ldr	d1, [x9, lCPI0_6@PAGEOFF]
	and.8b	v0, v0, v1
	str	d0, [sp, #24]
	and	w8, w8, #0xff
	str	w8, [sp, #32]
Lloh30:
	adrp	x8, lCPI0_7@PAGE
Lloh31:
	ldr	d0, [x8, lCPI0_7@PAGEOFF]
	stur	d0, [sp, #36]
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	w1, [x27]
	mov	x3, sp
	mov	w2, #82
	mov	w4, #11
	blr	x8
	b	LBB0_16
LBB0_15:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldr	x8, [sp, #56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpAdrp	Lloh26, Lloh28
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_x_tune1_seq1,4,2               ; @x_tune1_seq1
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_x_tune1_seq2,4,2               ; @x_tune1_seq2
	.no_dead_strip	_x_tune1
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.x_tune1
l_switch.table.x_tune1:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3                               ; 0x3

.subsections_via_symbols
