	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acx565akm_set_brightness
_acx565akm_set_brightness:              ## @acx565akm_set_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %eax
	orl	$256, %eax                      ## imm = 0x100
	movl	%eax, -24(%rbp)
	movq	_MIPI_DCS_SET_DISPLAY_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	$2, %ecx
	callq	_acx565akm_write
	movq	_MIPI_DCS_GET_CONTROL_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_acx565akm_read
	movq	_CTRL_DISP_BRIGHTNESS_CTRL_ON@GOTPCREL(%rip), %rcx
	movq	_CTRL_DISP_BACKLIGHT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	orl	-20(%rbp), %eax
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	-20(%rbp), %eax
LBB0_3:
	orl	$256, %eax                      ## imm = 0x100
	movl	%eax, -20(%rbp)
	movq	_MIPI_DCS_WRITE_CONTROL_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_acx565akm_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DCS_SET_DISPLAY_BRIGHTNESS,4,2 ## @MIPI_DCS_SET_DISPLAY_BRIGHTNESS
	.comm	_MIPI_DCS_GET_CONTROL_DISPLAY,4,2 ## @MIPI_DCS_GET_CONTROL_DISPLAY
	.comm	_CTRL_DISP_BRIGHTNESS_CTRL_ON,4,2 ## @CTRL_DISP_BRIGHTNESS_CTRL_ON
	.comm	_CTRL_DISP_BACKLIGHT_ON,4,2     ## @CTRL_DISP_BACKLIGHT_ON
	.comm	_MIPI_DCS_WRITE_CONTROL_DISPLAY,4,2 ## @MIPI_DCS_WRITE_CONTROL_DISPLAY
	.no_dead_strip	_acx565akm_set_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acx565akm_set_brightness
_acx565akm_set_brightness:              ; @acx565akm_set_brightness
	.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
	mov	x20, x1
	mov	x19, x0
	orr	w8, w1, #0x100
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _MIPI_DCS_SET_DISPLAY_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DCS_SET_DISPLAY_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #2
	bl	_acx565akm_write
Lloh3:
	adrp	x8, _MIPI_DCS_GET_CONTROL_DISPLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DCS_GET_CONTROL_DISPLAY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_acx565akm_read
Lloh6:
	adrp	x8, _CTRL_DISP_BRIGHTNESS_CTRL_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTRL_DISP_BRIGHTNESS_CTRL_ON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CTRL_DISP_BACKLIGHT_ON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CTRL_DISP_BACKLIGHT_ON@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
LBB0_3:
	orr	w8, w8, #0x100
	str	w8, [sp, #12]
Lloh12:
	adrp	x8, _MIPI_DCS_WRITE_CONTROL_DISPLAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIPI_DCS_WRITE_CONTROL_DISPLAY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #2
	bl	_acx565akm_write
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DCS_SET_DISPLAY_BRIGHTNESS,4,2 ; @MIPI_DCS_SET_DISPLAY_BRIGHTNESS
	.comm	_MIPI_DCS_GET_CONTROL_DISPLAY,4,2 ; @MIPI_DCS_GET_CONTROL_DISPLAY
	.comm	_CTRL_DISP_BRIGHTNESS_CTRL_ON,4,2 ; @CTRL_DISP_BRIGHTNESS_CTRL_ON
	.comm	_CTRL_DISP_BACKLIGHT_ON,4,2     ; @CTRL_DISP_BACKLIGHT_ON
	.comm	_MIPI_DCS_WRITE_CONTROL_DISPLAY,4,2 ; @MIPI_DCS_WRITE_CONTROL_DISPLAY
	.no_dead_strip	_acx565akm_set_brightness
.subsections_via_symbols
