	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acx565akm_set_cabc_mode
_acx565akm_set_cabc_mode:               ## @acx565akm_set_cabc_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, (%rdi)
	cmpl	$0, 4(%rdi)
	je	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	movq	_MIPID_CMD_READ_CABC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %r15
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_acx565akm_read
	movl	$-260, %eax                     ## imm = 0xFEFC
	andl	-28(%rbp), %eax
	andl	$3, %ebx
	addl	%ebx, %eax
	addl	$256, %eax                      ## imm = 0x100
	movl	%eax, -28(%rbp)
	movq	_MIPID_CMD_WRITE_CABC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_acx565akm_write
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPID_CMD_READ_CABC,4,2        ## @MIPID_CMD_READ_CABC
	.comm	_MIPID_CMD_WRITE_CABC,4,2       ## @MIPID_CMD_WRITE_CABC
	.no_dead_strip	_acx565akm_set_cabc_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acx565akm_set_cabc_mode
_acx565akm_set_cabc_mode:               ; @acx565akm_set_cabc_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	w1, [x0]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _MIPID_CMD_READ_CABC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPID_CMD_READ_CABC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_acx565akm_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffc
	and	w9, w20, #0x3
	orr	w8, w9, w8
	orr	w8, w8, #0x100
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _MIPID_CMD_WRITE_CABC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPID_CMD_WRITE_CABC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #2
	bl	_acx565akm_write
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPID_CMD_READ_CABC,4,2        ; @MIPID_CMD_READ_CABC
	.comm	_MIPID_CMD_WRITE_CABC,4,2       ; @MIPID_CMD_WRITE_CABC
	.no_dead_strip	_acx565akm_set_cabc_mode
.subsections_via_symbols
