	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_driver_features
_parse_driver_features:                 ## @parse_driver_features
	.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, %r15
	movq	%rdi, %r14
	movq	_BDB_DRIVER_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jl	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_BDB_DRIVER_FEATURE_INT_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	cmpl	$134, (%r15)
	jl	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	movq	_BDB_DRIVER_FEATURE_INT_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.5:
	movq	_BDB_DRIVER_FEATURE_INT_SDVO_LVDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_7:
	movq	$0, 8(%r14)
LBB0_8:
	movl	12(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	cmpl	$0, 12(%rbx)
	jne	LBB0_10
## %bb.9:
	movq	_DRRS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_10:
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_DRIVER_FEATURES,4,2        ## @BDB_DRIVER_FEATURES
	.comm	_BDB_DRIVER_FEATURE_INT_LVDS,8,3 ## @BDB_DRIVER_FEATURE_INT_LVDS
	.comm	_BDB_DRIVER_FEATURE_INT_SDVO_LVDS,8,3 ## @BDB_DRIVER_FEATURE_INT_SDVO_LVDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DRRS State Enabled:%d\n"

	.comm	_DRRS_NOT_SUPPORTED,4,2         ## @DRRS_NOT_SUPPORTED
	.no_dead_strip	_parse_driver_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_driver_features
_parse_driver_features:                 ; @parse_driver_features
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BDB_DRIVER_FEATURES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BDB_DRIVER_FEATURES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_find_section
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #5
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _BDB_DRIVER_FEATURE_INT_LVDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BDB_DRIVER_FEATURE_INT_LVDS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
	b	LBB0_6
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #134
	b.lt	LBB0_6
; %bb.4:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _BDB_DRIVER_FEATURE_INT_LVDS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BDB_DRIVER_FEATURE_INT_LVDS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _BDB_DRIVER_FEATURE_INT_SDVO_LVDS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BDB_DRIVER_FEATURE_INT_SDVO_LVDS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
LBB0_5:
	str	xzr, [x19, #8]
LBB0_6:
	ldr	w1, [x20, #12]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _DRRS_NOT_SUPPORTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRRS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_8:
	ldr	w8, [x20, #8]
	str	w8, [x19]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_DRIVER_FEATURES,4,2        ; @BDB_DRIVER_FEATURES
	.comm	_BDB_DRIVER_FEATURE_INT_LVDS,8,3 ; @BDB_DRIVER_FEATURE_INT_LVDS
	.comm	_BDB_DRIVER_FEATURE_INT_SDVO_LVDS,8,3 ; @BDB_DRIVER_FEATURE_INT_SDVO_LVDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DRRS State Enabled:%d\n"

	.comm	_DRRS_NOT_SUPPORTED,4,2         ; @DRRS_NOT_SUPPORTED
	.no_dead_strip	_parse_driver_features
.subsections_via_symbols
