	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_general_features
_parse_general_features:                ## @parse_general_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, %r14
	movq	%rdi, %r15
	movq	_BDB_GENERAL_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movl	28(%rax), %eax
	movl	%eax, 20(%r15)
	cmpl	$155, (%r14)
	jl	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_HAS_DDI
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movl	24(%rbx), %eax
	movl	%eax, 16(%r15)
LBB0_5:
	movl	20(%rbx), %eax
	movl	%eax, 12(%r15)
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_intel_bios_ssc_frequency
	movl	%eax, 8(%r15)
	movl	12(%rbx), %r9d
	movl	%r9d, 4(%r15)
	movl	8(%rbx), %edi
	movl	%edi, (%r15)
	cmpl	$181, (%r14)
	jl	LBB0_9
## %bb.6:
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.8:
	movq	_DRM_MODE_PANEL_ORIENTATION_NORMAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movl	20(%r15), %esi
	movl	12(%r15), %ecx
	movl	16(%r15), %edx
	movl	%edi, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %r8d
	callq	_DRM_DEBUG_KMS
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_GENERAL_FEATURES,4,2       ## @BDB_GENERAL_FEATURES
	.comm	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,4,2 ## @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_NORMAL,4,2 ## @DRM_MODE_PANEL_ORIENTATION_NORMAL
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ## @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BDB_GENERAL_FEATURES int_tv_support %d int_crt_support %d lvds_use_ssc %d lvds_ssc_freq %d display_clock_mode %d fdi_rx_polarity_inverted %d\n"

	.no_dead_strip	_parse_general_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_general_features
_parse_general_features:                ; @parse_general_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BDB_GENERAL_FEATURES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BDB_GENERAL_FEATURES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_find_section
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #28]
	str	w8, [x19, #20]
	ldr	w8, [x20]
	cmp	w8, #155
	b.lt	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_HAS_DDI
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_5
LBB0_4:
	ldr	w8, [x21, #24]
	str	w8, [x19, #16]
LBB0_5:
	ldp	w1, w8, [x21, #16]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_intel_bios_ssc_frequency
	mov	x4, x0
	str	w0, [x19, #8]
	ldp	w6, w5, [x21, #8]
	stp	w6, w5, [x19]
	ldr	w8, [x20]
	cmp	w8, #181
	b.lt	LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _DRM_MODE_PANEL_ORIENTATION_NORMAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DRM_MODE_PANEL_ORIENTATION_NORMAL@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_9
LBB0_7:
	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_8:
Lloh7:
	adrp	x8, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_PANEL_ORIENTATION_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x19, #12]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_GENERAL_FEATURES,4,2       ; @BDB_GENERAL_FEATURES
	.comm	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,4,2 ; @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_NORMAL,4,2 ; @DRM_MODE_PANEL_ORIENTATION_NORMAL
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ; @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BDB_GENERAL_FEATURES int_tv_support %d int_crt_support %d lvds_use_ssc %d lvds_ssc_freq %d display_clock_mode %d fdi_rx_polarity_inverted %d\n"

	.no_dead_strip	_parse_general_features
.subsections_via_symbols
