	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dsi_dcs_get_display_brightness ## -- Begin function mipi_dsi_dcs_get_display_brightness
	.p2align	4, 0x90
_mipi_dsi_dcs_get_display_brightness:   ## @mipi_dsi_dcs_get_display_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rdx
	movq	_MIPI_DCS_GET_DISPLAY_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %ecx
	callq	_mipi_dsi_dcs_read
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	testl	%eax, %eax
	cmovel	%esi, %eax
	cmovgl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DCS_GET_DISPLAY_BRIGHTNESS,4,2 ## @MIPI_DCS_GET_DISPLAY_BRIGHTNESS
	.comm	_ENODATA,4,2                    ## @ENODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dsi_dcs_get_display_brightness ; -- Begin function mipi_dsi_dcs_get_display_brightness
	.p2align	2
_mipi_dsi_dcs_get_display_brightness:   ; @mipi_dsi_dcs_get_display_brightness
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
Lloh0:
	adrp	x8, _MIPI_DCS_GET_DISPLAY_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DCS_GET_DISPLAY_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w3, #4
	bl	_mipi_dsi_dcs_read
Lloh3:
	adrp	x8, _ENODATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w8, w0, w8, ne
	csel	w0, wzr, w8, gt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DCS_GET_DISPLAY_BRIGHTNESS,4,2 ; @MIPI_DCS_GET_DISPLAY_BRIGHTNESS
	.comm	_ENODATA,4,2                    ; @ENODATA
.subsections_via_symbols
