	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x_tune4
_x_tune4:                               ## @x_tune4
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$20, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	leaq	-48(%rbp), %rcx
	movl	$85, %edx
	movl	$2, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	16(%rbx), %rdi
	movl	(%r14), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movabsq	$1095216660491, %r15            ## imm = 0xFF0000000B
	movq	%r15, -48(%rbp)
	movq	16(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-48(%rbp), %rcx
	movl	$83, %edx
	movl	$2, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	16(%rbx), %rdi
	movl	(%r14), %esi
	movl	$87, %edx
	movl	$1, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	%r15, -48(%rbp)
	movq	16(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-48(%rbp), %rcx
	movl	$85, %edx
	movl	$2, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	$20, -48(%rbp)
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	leaq	-48(%rbp), %rcx
	movl	$83, %edx
	movl	$2, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	movl	$87, %edx
	movl	$2, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	16(%rbx), %r14
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_x_tune4_seq@GOTPCREL(%rip), %r13
	movl	(%r13), %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_14
## %bb.13:
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_x_tune4_seq,4,2                ## @x_tune4_seq
	.no_dead_strip	_x_tune4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function x_tune4
lCPI0_0:
	.long	11                              ; 0xb
	.long	255                             ; 0xff
lCPI0_1:
	.long	20                              ; 0x14
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_x_tune4:                               ; @x_tune4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	mov	w8, #20
	str	x8, [sp, #8]
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x20, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x8, [x0, #8]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	w2, #85
	mov	w4, #2
	blr	x8
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x20]
	mov	w2, #0
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_14
; %bb.5:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	str	d8, [sp, #8]
	ldr	x0, [x19, #16]
	ldr	x8, [x0, #8]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	w2, #83
	mov	w4, #2
	blr	x8
	cbnz	w0, LBB0_14
; %bb.6:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x20]
	mov	w2, #87
	mov	w3, #1
	blr	x8
	cbnz	w0, LBB0_14
; %bb.7:
	str	d8, [sp, #8]
	ldr	x0, [x19, #16]
	ldr	x8, [x0, #8]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	w2, #85
	mov	w4, #2
	blr	x8
	cbnz	w0, LBB0_14
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	w1, [x20]
	mov	w2, #0
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_14
; %bb.9:
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x8, [x0, #8]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	w2, #83
	mov	w4, #2
	blr	x8
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	w1, [x20]
	mov	w2, #87
	mov	w3, #2
	blr	x8
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	x20, [x19, #16]
Lloh9:
	adrp	x23, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh11:
	adrp	x24, _x_tune4_seq@GOTPAGE
Lloh12:
	ldr	x24, [x24, _x_tune4_seq@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	x8, [x19, #8]
	ldr	x19, [x8]
	ldr	w20, [x23]
	ldr	w21, [x24]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_cxd2880_io_write_multi_regs
	b	LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_x_tune4_seq,4,2                ; @x_tune4_seq
	.no_dead_strip	_x_tune4
.subsections_via_symbols
