	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_video_get_capabilities    ## -- Begin function acpi_video_get_capabilities
	.p2align	4, 0x90
_acpi_video_get_capabilities:           ## @acpi_video_get_capabilities
	.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	%rdi, %rbx
	movq	$0, -24(%rbp)
	movq	_acpi_video_caps_checked@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	_acpi_video_support@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_9
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_acpi_bus_get_device
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_EXCEPTION
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_ROOT_OBJECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_find_video@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_acpi_walk_namespace
	movq	-24(%rbp), %rax
	movq	_acpi_video_support@GOTPCREL(%rip), %rcx
	orq	%rax, (%rcx)
	movl	$1, (%r14)
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_find_video@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	callq	_acpi_walk_namespace
	movq	-32(%rbp), %rdi
	callq	_acpi_device_bid
	movq	%rax, %rdi
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movq	-24(%rbp), %rax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_video_caps_checked,4,2    ## @acpi_video_caps_checked
	.comm	_acpi_video_support,8,3         ## @acpi_video_support
	.comm	_ACPI_TYPE_DEVICE,4,2           ## @ACPI_TYPE_DEVICE
	.comm	_ACPI_ROOT_OBJECT,8,3           ## @ACPI_ROOT_OBJECT
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_find_video,4,2                 ## @find_video
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid device"

	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
L_.str.4:                               ## @.str.4
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_video_get_capabilities    ; -- Begin function acpi_video_get_capabilities
	.p2align	2
_acpi_video_get_capabilities:           ; @acpi_video_get_capabilities
	.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, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x20, _acpi_video_caps_checked@GOTPAGE
Lloh1:
	ldr	x20, [x20, _acpi_video_caps_checked@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _acpi_video_support@GOTPAGE
Lloh3:
	ldr	x8, [x8, _acpi_video_support@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	b	LBB0_9
LBB0_3:
	cbz	x19, LBB0_6
; %bb.4:
	mov	x1, sp
	mov	x0, x19
	bl	_acpi_bus_get_device
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_EXCEPTION
	mov	x0, #0
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _ACPI_ROOT_OBJECT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACPI_ROOT_OBJECT@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
Lloh13:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _find_video@GOTPAGE
Lloh17:
	ldr	x8, [x8, _find_video@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x5, #0
	bl	_acpi_walk_namespace
	ldr	x8, [sp, #8]
Lloh19:
	adrp	x9, _acpi_video_support@GOTPAGE
Lloh20:
	ldr	x9, [x9, _acpi_video_support@GOTPAGEOFF]
	ldr	x10, [x9]
	orr	x8, x10, x8
	str	x8, [x9]
	mov	w8, #1
	str	w8, [x20]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _find_video@GOTPAGE
Lloh30:
	ldr	x8, [x8, _find_video@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x1, x19
	mov	x5, #0
	bl	_acpi_walk_namespace
	ldr	x0, [sp]
	bl	_acpi_device_bid
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	ldr	x0, [sp, #8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_video_caps_checked,4,2    ; @acpi_video_caps_checked
	.comm	_acpi_video_support,8,3         ; @acpi_video_support
	.comm	_ACPI_TYPE_DEVICE,4,2           ; @ACPI_TYPE_DEVICE
	.comm	_ACPI_ROOT_OBJECT,8,3           ; @ACPI_ROOT_OBJECT
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_find_video,4,2                 ; @find_video
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid device"

	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
l_.str.4:                               ; @.str.4
	.space	1

.subsections_via_symbols
