	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brightness_get
_brightness_get:                        ## @brightness_get
	.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	_brightness_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock_killable
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	-20(%rbp), %rdi
	callq	_tpacpi_brightness_get_raw
	movl	%eax, %r14d
	movq	_brightness_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	js	LBB0_3
## %bb.2:
	movq	_TP_EC_BACKLIGHT_LVLMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	-20(%rbp), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_brightness_mutex,4,2           ## @brightness_mutex
	.comm	_TP_EC_BACKLIGHT_LVLMSK,4,2     ## @TP_EC_BACKLIGHT_LVLMSK
	.no_dead_strip	_brightness_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brightness_get
_brightness_get:                        ; @brightness_get
	.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
Lloh0:
	adrp	x0, _brightness_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _brightness_mutex@GOTPAGEOFF]
	bl	_mutex_lock_killable
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_tpacpi_brightness_get_raw
	mov	x19, x0
Lloh2:
	adrp	x0, _brightness_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _brightness_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	tbnz	w19, #31, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _TP_EC_BACKLIGHT_LVLMSK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TP_EC_BACKLIGHT_LVLMSK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w0, w9, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_brightness_mutex,4,2           ; @brightness_mutex
	.comm	_TP_EC_BACKLIGHT_LVLMSK,4,2     ; @TP_EC_BACKLIGHT_LVLMSK
	.no_dead_strip	_brightness_get
.subsections_via_symbols
