	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_crt_compute_config
_hsw_crt_compute_config:                ## @hsw_crt_compute_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 28(%rbx)
	jne	LBB0_1
## %bb.2:
	cmpl	$4096, 32(%rbx)                 ## imm = 0x1000
	jg	LBB0_1
## %bb.3:
	cmpl	$4097, 36(%rbx)                 ## imm = 0x1001
	jl	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movl	$1, (%rbx)
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rax, %rdi
	callq	_HAS_PCH_LPT
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.6:
	cmpl	$23, 4(%rbx)
	jg	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_1
LBB0_8:
	movl	$24, 4(%rbx)
LBB0_9:
	movl	$270000, 8(%rbx)                ## imm = 0x41EB0
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ## @INTEL_OUTPUT_FORMAT_RGB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LPT only supports 24bpp\n"

	.no_dead_strip	_hsw_crt_compute_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_crt_compute_config
_hsw_crt_compute_config:                ; @hsw_crt_compute_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	w0, [x0]
	bl	_to_i915
	ldr	w8, [x19, #28]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #32]
	cmp	w8, #1, lsl #12                 ; =4096
	b.gt	LBB0_3
; %bb.2:
	ldr	w8, [x19, #36]
	cmp	w8, #1, lsl #12                 ; =4096
	b.le	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	bl	_HAS_PCH_LPT
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w8, [x19, #4]
	cmp	w8, #23
	b.gt	LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_3
LBB0_9:
	mov	w8, #24
	str	w8, [x19, #4]
LBB0_10:
	mov	w0, #0
	mov	w8, #7856
	movk	w8, #4, lsl #16
	str	w8, [x19, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ; @INTEL_OUTPUT_FORMAT_RGB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LPT only supports 24bpp\n"

	.no_dead_strip	_hsw_crt_compute_config
.subsections_via_symbols
