	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_bios_is_dsi_present      ## -- Begin function intel_bios_is_dsi_present
	.p2align	4, 0x90
_intel_bios_is_dsi_present:             ## @intel_bios_is_dsi_present
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r15d, %r15d
	movq	_DVO_PORT_MIPIB@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVO_PORT_MIPIA@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	_DEVICE_TYPE_MIPI_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -8(%rax,%r14)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax,%r14), %rbx
	movq	_DVO_PORT_MIPIA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %rbx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jg	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVO_PORT_MIPIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVO_PORT_MIPIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %rbx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVO_PORT_MIPID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
	jmp	LBB0_12
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_15:
	movl	$1, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movq	_DVO_PORT_MIPIA@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ebx
	movl	%ebx, (%rcx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_TYPE_MIPI_OUTPUT,4,2    ## @DEVICE_TYPE_MIPI_OUTPUT
	.comm	_DVO_PORT_MIPIA,8,3             ## @DVO_PORT_MIPIA
	.comm	_DVO_PORT_MIPIB,8,3             ## @DVO_PORT_MIPIB
	.comm	_DVO_PORT_MIPIC,8,3             ## @DVO_PORT_MIPIC
	.comm	_DVO_PORT_MIPID,8,3             ## @DVO_PORT_MIPID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VBT has unsupported DSI port %c\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_bios_is_dsi_present      ; -- Begin function intel_bios_is_dsi_present
	.p2align	2
_intel_bios_is_dsi_present:             ; @intel_bios_is_dsi_present
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x0
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x23, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _DEVICE_TYPE_MIPI_OUTPUT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DEVICE_TYPE_MIPI_OUTPUT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _DVO_PORT_MIPIA@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DVO_PORT_MIPIA@GOTPAGEOFF]
Lloh4:
	adrp	x26, _DVO_PORT_MIPIB@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DVO_PORT_MIPIB@GOTPAGEOFF]
Lloh6:
	adrp	x27, _DVO_PORT_MIPIC@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DVO_PORT_MIPIC@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _DVO_PORT_MIPID@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DVO_PORT_MIPID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [x8, x23]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23
	ldr	x19, [x8, #8]
	ldr	x8, [x22]
	cmp	x19, x8
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	cmp	x19, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.gt	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	cmp	x19, x8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	ldr	x10, [x28]
	cmp	x19, x9
	ccmp	x19, x8, #4, ne
	ccmp	x19, x10, #4, ne
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	sub	x0, x19, x8
	bl	_port_name
	mov	x1, x0
	mov	x0, x21
	bl	_DRM_DEBUG_KMS
	b	LBB0_2
LBB0_12:
	mov	w0, #0
	b	LBB0_16
LBB0_13:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_15
; %bb.14:
	ldr	w8, [x22]
	sub	w8, w19, w8
	str	w8, [x9]
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_TYPE_MIPI_OUTPUT,4,2    ; @DEVICE_TYPE_MIPI_OUTPUT
	.comm	_DVO_PORT_MIPIA,8,3             ; @DVO_PORT_MIPIA
	.comm	_DVO_PORT_MIPIB,8,3             ; @DVO_PORT_MIPIB
	.comm	_DVO_PORT_MIPIC,8,3             ; @DVO_PORT_MIPIC
	.comm	_DVO_PORT_MIPID,8,3             ; @DVO_PORT_MIPID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VBT has unsupported DSI port %c\n"

.subsections_via_symbols
