	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_lcd_level
_set_lcd_level:                         ## @set_lcd_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_acpi_driver_data
	movq	%rax, %r15
	movq	_use_alt_lcd_levels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %r13
	movq	%r13, %rsi
	callq	_acpi_has_method
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %r12
	cmovneq	%r13, %r12
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %r12
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_acpi_handle_debug
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.6:
	cmpl	%ebx, (%r15)
	jle	LBB0_7
## %bb.9:
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_acpi_execute_simple_method
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_acpi_handle_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%ebx, 4(%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_use_alt_lcd_levels,4,2         ## @use_alt_lcd_levels
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SBL2"

L_.str.1:                               ## @.str.1
	.asciz	"SBLL"

L_.str.2:                               ## @.str.2
	.asciz	"set lcd level via %s [%d]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Failed to evaluate %s\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_set_lcd_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_lcd_level
_set_lcd_level:                         ; @set_lcd_level
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_acpi_driver_data
	mov	x22, x0
Lloh0:
	adrp	x8, _use_alt_lcd_levels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_alt_lcd_levels@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_acpi_has_method
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	w0, #0
	csel	x21, x8, x21, eq
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_acpi_handle_debug
	tbnz	w19, #31, LBB0_8
; %bb.5:
	ldr	w8, [x22]
	cmp	w8, w19
	b.le	LBB0_8
; %bb.6:
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x19
	bl	_acpi_execute_simple_method
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_acpi_handle_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	str	w19, [x22, #4]
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_use_alt_lcd_levels,4,2         ; @use_alt_lcd_levels
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SBL2"

l_.str.1:                               ; @.str.1
	.asciz	"SBLL"

l_.str.2:                               ; @.str.2
	.asciz	"set lcd level via %s [%d]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Failed to evaluate %s\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_set_lcd_level
.subsections_via_symbols
