	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_video_device_lcd_get_level_current
_acpi_video_device_lcd_get_level_current: ## @acpi_video_device_lcd_get_level_current
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_4
LBB0_2:
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.3:
	leaq	L_.str.1(%rip), %r15
LBB0_4:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	(%rbx), %rax
	cmpq	$0, 32(%rax)
	movq	%r14, %rcx
	je	LBB0_10
## %bb.6:
	cmpq	$0, 24(%rax)
	je	LBB0_7
## %bb.8:
	movslq	(%rax), %rcx
	subq	(%r14), %rcx
	addq	$-3, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_9
LBB0_7:
	movq	(%r14), %rcx
LBB0_9:
	movq	8(%rax), %rdx
	leaq	(%rdx,%rcx,8), %rcx
	addq	$16, %rcx
LBB0_10:
	movq	(%rcx), %rcx
	movq	_bqc_offset_aml_bug_workaround@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	movq	%rcx, (%r14)
	movl	(%rax), %edx
	cmpl	$3, %edx
	jl	LBB0_15
## %bb.11:
	movq	8(%rax), %rsi
	movl	$2, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rsi,%rdi,8)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_13
LBB0_15:
	movl	%r15d, %edi
	callq	_ACPI_WARNING
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_16:
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movq	%rax, (%r14)
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rcx, 16(%rax)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_BQC"

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

	.comm	_bqc_offset_aml_bug_workaround,8,3 ## @bqc_offset_aml_bug_workaround
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.no_dead_strip	_acpi_video_device_lcd_get_level_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_video_device_lcd_get_level_current
_acpi_video_device_lcd_get_level_current: ; @acpi_video_device_lcd_get_level_current
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.3:
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, #0
	mov	x3, x19
	bl	_acpi_evaluate_integer
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_14
; %bb.5:
	ldr	x8, [x20]
	ldr	x10, [x8, #32]
	mov	x9, x19
	cbz	x10, LBB0_10
; %bb.6:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_8
; %bb.7:
	ldrsw	x9, [x8]
	ldr	x10, [x19]
	sub	x9, x9, x10
	sub	x9, x9, #3
	str	x9, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x9, [x19]
LBB0_9:
	ldr	x10, [x8, #8]
	add	x9, x10, x9, lsl #3
	add	x9, x9, #16
LBB0_10:
Lloh4:
	adrp	x10, _bqc_offset_aml_bug_workaround@GOTPAGE
Lloh5:
	ldr	x10, [x10, _bqc_offset_aml_bug_workaround@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh6:
	ldr	x10, [x10]
	add	x9, x9, x10
	str	x9, [x19]
	ldr	w11, [x8]
	cmp	w11, #3
	b.lt	LBB0_14
; %bb.11:
	ldr	x10, [x8, #8]
	add	x10, x10, #16
	sub	x11, x11, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x9
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x10, #8
	subs	x11, x11, #1
	b.ne	LBB0_12
LBB0_14:
	mov	x0, x21
	bl	_ACPI_WARNING
	stp	xzr, xzr, [x20, #8]
LBB0_15:
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	str	x8, [x19]
LBB0_16:
	mov	w0, #0
	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_17:
	str	x9, [x8, #16]
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_BQC"

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

	.comm	_bqc_offset_aml_bug_workaround,8,3 ; @bqc_offset_aml_bug_workaround
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.no_dead_strip	_acpi_video_device_lcd_get_level_current
.subsections_via_symbols
