	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_set_brightness
_pmu_set_brightness:                    ## @pmu_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_backlight_level@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	callq	_LEVEL_TO_BRIGHT
	movl	%eax, %ebx
	movq	_backlight_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_bright_req_1@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_PMU_BACKLIGHT_BRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_bright_req_1@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%ebx, %r8d
	callq	_pmu_request
LBB0_3:
	movq	_bright_req_2@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_PMU_POWER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PMU_POW_BACKLIGHT@GOTPCREL(%rip), %rax
	cmpl	$127, %ebx
	jge	LBB0_5
## %bb.6:
	movq	_PMU_POW_ON@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_PMU_POW_OFF@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_bright_req_2@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pmu_request                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_backlight_level,4,2            ## @backlight_level
	.comm	_backlight_enabled,4,2          ## @backlight_enabled
	.comm	_bright_req_1,8,3               ## @bright_req_1
	.comm	_PMU_BACKLIGHT_BRIGHT,4,2       ## @PMU_BACKLIGHT_BRIGHT
	.comm	_bright_req_2,8,3               ## @bright_req_2
	.comm	_PMU_POWER_CTRL,4,2             ## @PMU_POWER_CTRL
	.comm	_PMU_POW_BACKLIGHT,4,2          ## @PMU_POW_BACKLIGHT
	.comm	_PMU_POW_ON,4,2                 ## @PMU_POW_ON
	.comm	_PMU_POW_OFF,4,2                ## @PMU_POW_OFF
	.no_dead_strip	_pmu_set_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_set_brightness
_pmu_set_brightness:                    ; @pmu_set_brightness
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _backlight_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backlight_level@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	bl	_LEVEL_TO_BRIGHT
Lloh3:
	adrp	x8, _backlight_enabled@GOTPAGE
Lloh4:
	ldr	x8, [x8, _backlight_enabled@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _bright_req_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bright_req_1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _PMU_BACKLIGHT_BRIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PMU_BACKLIGHT_BRIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x0, _bright_req_1@GOTPAGE
Lloh13:
	ldr	x0, [x0, _bright_req_1@GOTPAGEOFF]
	mov	x1, #0
	mov	w2, #2
	mov	x4, x19
	bl	_pmu_request
LBB0_3:
Lloh14:
	adrp	x8, _bright_req_2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bright_req_2@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _PMU_POWER_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PMU_POWER_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _PMU_POW_BACKLIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PMU_POW_BACKLIGHT@GOTPAGEOFF]
Lloh22:
	adrp	x9, _PMU_POW_ON@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PMU_POW_ON@GOTPAGEOFF]
Lloh24:
	adrp	x10, _PMU_POW_OFF@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PMU_POW_OFF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w19, #127
	csel	x9, x9, x10, lt
	ldr	w9, [x9]
Lloh27:
	adrp	x0, _bright_req_2@GOTPAGE
Lloh28:
	ldr	x0, [x0, _bright_req_2@GOTPAGEOFF]
	orr	w4, w9, w8
	mov	x1, #0
	mov	w2, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pmu_request
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh26
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_backlight_level,4,2            ; @backlight_level
	.comm	_backlight_enabled,4,2          ; @backlight_enabled
	.comm	_bright_req_1,8,3               ; @bright_req_1
	.comm	_PMU_BACKLIGHT_BRIGHT,4,2       ; @PMU_BACKLIGHT_BRIGHT
	.comm	_bright_req_2,8,3               ; @bright_req_2
	.comm	_PMU_POWER_CTRL,4,2             ; @PMU_POWER_CTRL
	.comm	_PMU_POW_BACKLIGHT,4,2          ; @PMU_POW_BACKLIGHT
	.comm	_PMU_POW_ON,4,2                 ; @PMU_POW_ON
	.comm	_PMU_POW_OFF,4,2                ; @PMU_POW_OFF
	.no_dead_strip	_pmu_set_brightness
.subsections_via_symbols
