	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bl_set_status
_bl_set_status:                         ## @bl_set_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_bl_get_data
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movq	%rax, %rdi
	callq	_acpi_pcc_retrieve_biosdata
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%r14), %rax
	movq	_SINF_AC_MIN_BRIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	cmpl	%ecx, %ebx
	cmovlel	%ecx, %ebx
	movq	_SINF_DC_MIN_BRIGHT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %edx
	cmpl	%edx, %ebx
	cmovlel	%edx, %ebx
	cmpl	%ecx, %ebx
	jl	LBB0_5
## %bb.4:
	movq	_SINF_AC_MAX_BRIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rax,%rcx,4), %ebx
	jle	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_SINF_AC_CUR_BRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_acpi_pcc_write_sset
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_SINF_DC_CUR_BRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_acpi_pcc_write_sset            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SINF_AC_MIN_BRIGHT,8,3         ## @SINF_AC_MIN_BRIGHT
	.comm	_SINF_DC_MIN_BRIGHT,8,3         ## @SINF_DC_MIN_BRIGHT
	.comm	_SINF_AC_MAX_BRIGHT,8,3         ## @SINF_AC_MAX_BRIGHT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SINF_AC_CUR_BRIGHT,4,2         ## @SINF_AC_CUR_BRIGHT
	.comm	_SINF_DC_CUR_BRIGHT,4,2         ## @SINF_DC_CUR_BRIGHT
	.no_dead_strip	_bl_set_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bl_set_status
_bl_set_status:                         ; @bl_set_status
	.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
	mov	x20, x0
	bl	_bl_get_data
	mov	x19, x0
	ldr	w20, [x20]
	bl	_acpi_pcc_retrieve_biosdata
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SINF_AC_MIN_BRIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SINF_AC_MIN_BRIGHT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w20, w9
	csel	w10, w20, w9, gt
Lloh3:
	adrp	x11, _SINF_DC_MIN_BRIGHT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SINF_DC_MIN_BRIGHT@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	w11, [x8, x11, lsl #2]
	cmp	w10, w11
	csel	w20, w10, w11, gt
	cmp	w20, w9
	b.lt	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _SINF_AC_MAX_BRIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SINF_AC_MAX_BRIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w20, w8
	b.le	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh13:
	adrp	x8, _SINF_AC_CUR_BRIGHT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SINF_AC_CUR_BRIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_acpi_pcc_write_sset
	tbnz	w0, #31, LBB0_6
; %bb.8:
Lloh16:
	adrp	x8, _SINF_DC_CUR_BRIGHT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SINF_DC_CUR_BRIGHT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_acpi_pcc_write_sset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SINF_AC_MIN_BRIGHT,8,3         ; @SINF_AC_MIN_BRIGHT
	.comm	_SINF_DC_MIN_BRIGHT,8,3         ; @SINF_DC_MIN_BRIGHT
	.comm	_SINF_AC_MAX_BRIGHT,8,3         ; @SINF_AC_MAX_BRIGHT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SINF_AC_CUR_BRIGHT,4,2         ; @SINF_AC_CUR_BRIGHT
	.comm	_SINF_DC_CUR_BRIGHT,4,2         ; @SINF_DC_CUR_BRIGHT
	.no_dead_strip	_bl_set_status
.subsections_via_symbols
