	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_get_cur_state
_video_get_cur_state:                   ## @video_get_cur_state
	.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	%rsi, %r14
	movq	(%rdi), %rdi
	callq	_acpi_driver_data
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	movq	%rax, %rdi
	callq	_acpi_video_device_lcd_get_level_current
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.2:
	movq	-24(%rbp), %rdx
	movq	8(%rcx), %rsi
	leaq	-2(%rax), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	16(%rsi,%rcx,8), %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_3
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	subl	%ecx, %eax
	addl	$-3, %eax
	cltq
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_video_get_cur_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_get_cur_state
_video_get_cur_state:                   ; @video_get_cur_state
	.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
	mov	x19, x1
	ldr	x0, [x0]
	bl	_acpi_driver_data
	mov	x20, x0
	add	x1, sp, #8
	bl	_acpi_video_device_lcd_get_level_current
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x10, [x20]
	ldr	w8, [x10]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.2:
	ldr	x9, [sp, #8]
	ldr	x10, [x10, #8]
	add	x10, x10, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x9, x11
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x8, #1
	add	x10, x10, #8
	cmp	x8, #2
	b.ne	LBB0_3
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	mov	w0, #0
	sub	w8, w8, #3
	sxtw	x8, w8
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_video_get_cur_state
.subsections_via_symbols
