	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_is_video_device           ## -- Begin function acpi_is_video_device
	.p2align	4, 0x90
_acpi_is_video_device:                  ## @acpi_is_video_device
	.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	$0, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_15
LBB0_3:
	movq	_ACPI_VIDEO_OUTPUT_SWITCHING@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, -32(%rbp)
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ACPI_VIDEO_ROM_AVAILABLE@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
	movq	%r14, -32(%rbp)
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ACPI_VIDEO_DEVICE_POSTING@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
	movq	%r14, -32(%rbp)
LBB0_10:
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_acpi_backlight_cap_match@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_acpi_walk_namespace
	movq	-32(%rbp), %rax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_DOD"

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

	.comm	_ACPI_VIDEO_OUTPUT_SWITCHING,8,3 ## @ACPI_VIDEO_OUTPUT_SWITCHING
L_.str.2:                               ## @.str.2
	.asciz	"_ROM"

	.comm	_ACPI_VIDEO_ROM_AVAILABLE,8,3   ## @ACPI_VIDEO_ROM_AVAILABLE
L_.str.3:                               ## @.str.3
	.asciz	"_VPO"

L_.str.4:                               ## @.str.4
	.asciz	"_GPD"

L_.str.5:                               ## @.str.5
	.asciz	"_SPD"

	.comm	_ACPI_VIDEO_DEVICE_POSTING,8,3  ## @ACPI_VIDEO_DEVICE_POSTING
	.comm	_ACPI_TYPE_DEVICE,4,2           ## @ACPI_TYPE_DEVICE
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_acpi_backlight_cap_match,4,2   ## @acpi_backlight_cap_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_is_video_device           ; -- Begin function acpi_is_video_device
	.p2align	2
_acpi_is_video_device:                  ; @acpi_is_video_device
	.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
	str	xzr, [sp]
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_14
LBB0_3:
Lloh4:
	adrp	x8, _ACPI_VIDEO_OUTPUT_SWITCHING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ACPI_VIDEO_OUTPUT_SWITCHING@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
	str	x20, [sp]
LBB0_4:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _ACPI_VIDEO_ROM_AVAILABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_VIDEO_ROM_AVAILABLE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	orr	x20, x20, x8
	str	x20, [sp]
LBB0_6:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _ACPI_VIDEO_DEVICE_POSTING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ACPI_VIDEO_DEVICE_POSTING@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	orr	x20, x20, x8
	str	x20, [sp]
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh24:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _acpi_backlight_cap_match@GOTPAGE
Lloh28:
	ldr	x8, [x8, _acpi_backlight_cap_match@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x4, sp
	mov	x5, #0
	bl	_acpi_walk_namespace
	ldr	x0, [sp]
	b	LBB0_13
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	mov	x20, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_DOD"

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

	.comm	_ACPI_VIDEO_OUTPUT_SWITCHING,8,3 ; @ACPI_VIDEO_OUTPUT_SWITCHING
l_.str.2:                               ; @.str.2
	.asciz	"_ROM"

	.comm	_ACPI_VIDEO_ROM_AVAILABLE,8,3   ; @ACPI_VIDEO_ROM_AVAILABLE
l_.str.3:                               ; @.str.3
	.asciz	"_VPO"

l_.str.4:                               ; @.str.4
	.asciz	"_GPD"

l_.str.5:                               ; @.str.5
	.asciz	"_SPD"

	.comm	_ACPI_VIDEO_DEVICE_POSTING,8,3  ; @ACPI_VIDEO_DEVICE_POSTING
	.comm	_ACPI_TYPE_DEVICE,4,2           ; @ACPI_TYPE_DEVICE
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_acpi_backlight_cap_match,4,2   ; @acpi_backlight_cap_match
.subsections_via_symbols
