	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function otm8009a_backlight_update_status
_otm8009a_backlight_update_status:      ## @otm8009a_backlight_update_status
	.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
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_bl_get_data
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_FB_BLANK_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.4:
	movl	$0, -28(%rbp)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_MIPI_DCS_SET_DISPLAY_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_otm8009a_dcs_write_buf_hs
	movl	$36, -28(%rbp)
LBB0_5:
	movq	_MIPI_DCS_WRITE_CONTROL_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_otm8009a_dcs_write_buf_hs
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lcd not ready yet for setting its backlight!\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_FB_BLANK_NORMAL,8,3            ## @FB_BLANK_NORMAL
	.comm	_MIPI_DCS_SET_DISPLAY_BRIGHTNESS,4,2 ## @MIPI_DCS_SET_DISPLAY_BRIGHTNESS
	.comm	_MIPI_DCS_WRITE_CONTROL_DISPLAY,4,2 ## @MIPI_DCS_WRITE_CONTROL_DISPLAY
	.no_dead_strip	_otm8009a_backlight_update_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function otm8009a_backlight_update_status
_otm8009a_backlight_update_status:      ; @otm8009a_backlight_update_status
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_bl_get_data
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _FB_BLANK_NORMAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FB_BLANK_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	str	wzr, [sp, #4]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _MIPI_DCS_SET_DISPLAY_BRIGHTNESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIPI_DCS_SET_DISPLAY_BRIGHTNESS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	stp	w8, w9, [sp]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_otm8009a_dcs_write_buf_hs
	mov	w8, #36
	str	w8, [sp, #4]
LBB0_5:
Lloh14:
	adrp	x8, _MIPI_DCS_WRITE_CONTROL_DISPLAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MIPI_DCS_WRITE_CONTROL_DISPLAY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_otm8009a_dcs_write_buf_hs
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #8]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lcd not ready yet for setting its backlight!\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_FB_BLANK_NORMAL,8,3            ; @FB_BLANK_NORMAL
	.comm	_MIPI_DCS_SET_DISPLAY_BRIGHTNESS,4,2 ; @MIPI_DCS_SET_DISPLAY_BRIGHTNESS
	.comm	_MIPI_DCS_WRITE_CONTROL_DISPLAY,4,2 ; @MIPI_DCS_WRITE_CONTROL_DISPLAY
	.no_dead_strip	_otm8009a_backlight_update_status
.subsections_via_symbols
