	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_sdvo_device_mapping
_parse_sdvo_device_mapping:             ## @parse_sdvo_device_mapping
	.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
	movq	%rdi, %rbx
	movl	$3, %esi
	movl	$7, %edx
	callq	_IS_GEN_RANGE
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.8(%rip), %rdi
	cmpl	$0, (%rbx)
	jle	LBB0_2
## %bb.4:
	movq	_SLAVE_ADDR1@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SLAVE_ADDR1@GOTPCREL(%rip), %rcx
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	addq	$40, %r13
	cmpq	%rax, %r14
	jge	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r12
	movq	(%r12,%r13), %rsi
	cmpq	(%rcx), %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SLAVE_ADDR2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r12,%r13), %eax
	movq	_DEVICE_PORT_DVOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_DEVICE_PORT_DVOC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, %eax
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	8(%rbx), %rax
	movslq	8(%r12,%r13), %rsi
	leaq	-1(%rsi), %rdi
	shlq	$5, %rdi
	cmpl	$0, (%rax,%rdi)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpq	$0, 16(%r12,%r13)
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rdi), %r10
	movl	%esi, 4(%rax,%rdi)
	movq	(%r12,%r13), %rdx
	movq	%rdx, 8(%rax,%rdi)
	movl	32(%r12,%r13), %ecx
	movl	%ecx, 24(%rax,%rdi)
	movl	28(%r12,%r13), %r8d
	movl	%r8d, 20(%rax,%rdi)
	movl	24(%r12,%r13), %r9d
	movl	%r9d, 16(%rax,%rdi)
	movl	$1, (%r10)
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpq	$0, 16(%r12,%r13)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_18:
	testl	%r15d, %r15d
	leaq	L_.str.8(%rip), %rdi
	je	LBB0_2
## %bb.19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping SDVO device mapping\n"

	.comm	_SLAVE_ADDR1,8,3                ## @SLAVE_ADDR1
	.comm	_SLAVE_ADDR2,8,3                ## @SLAVE_ADDR2
	.comm	_DEVICE_PORT_DVOB,4,2           ## @DEVICE_PORT_DVOB
	.comm	_DEVICE_PORT_DVOC,4,2           ## @DEVICE_PORT_DVOC
L_.str.1:                               ## @.str.1
	.asciz	"Incorrect SDVO port. Skip it\n"

L_.str.2:                               ## @.str.2
	.asciz	"the SDVO device with slave addr %2x is found on %s port\n"

L_.str.3:                               ## @.str.3
	.asciz	"SDVOB"

L_.str.4:                               ## @.str.4
	.asciz	"SDVOC"

L_.str.5:                               ## @.str.5
	.asciz	"SDVO device: dvo=%x, addr=%x, wiring=%d, ddc_pin=%d, i2c_pin=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Maybe one SDVO port is shared by two SDVO device.\n"

L_.str.7:                               ## @.str.7
	.asciz	"there exists the slave2_addr. Maybe this is a SDVO device with multiple inputs.\n"

L_.str.8:                               ## @.str.8
	.asciz	"No SDVO device info is found in VBT\n"

	.no_dead_strip	_parse_sdvo_device_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_sdvo_device_mapping
_parse_sdvo_device_mapping:             ; @parse_sdvo_device_mapping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	mov	w1, #3
	mov	w2, #7
	bl	_IS_GEN_RANGE
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.2:
	mov	x26, #0
	mov	x27, #0
	mov	w25, #0
Lloh0:
	adrp	x28, _SLAVE_ADDR1@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SLAVE_ADDR1@GOTPAGEOFF]
Lloh2:
	adrp	x21, _SLAVE_ADDR2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SLAVE_ADDR2@GOTPAGEOFF]
Lloh4:
	adrp	x22, _DEVICE_PORT_DVOB@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DEVICE_PORT_DVOB@GOTPAGEOFF]
Lloh6:
	adrp	x23, _DEVICE_PORT_DVOC@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DEVICE_PORT_DVOC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19]
	add	x26, x26, #40
	cmp	x27, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #16]
	ldr	x8, [x20, x26]
	ldr	x9, [x28]
	ldr	x10, [x21]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x20, x26
	ldr	w9, [x24, #8]
	ldr	w10, [x22]
	ldr	w11, [x23]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w10
Lloh10:
	adrp	x9, l_.str.4@PAGE
Lloh11:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh12:
	adrp	x10, l_.str.3@PAGE
Lloh13:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x9, [x19, #8]
	ldrsw	x8, [x24, #8]
	sub	x10, x8, #1
	add	x9, x9, x10, lsl #5
	ldr	w10, [x9]
	cbz	w10, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x20, x26
	ldr	x11, [x10]
	str	x11, [x9, #8]
	ldr	w12, [x10, #32]
	str	w12, [x9, #24]
	ldp	w10, w13, [x10, #24]
	stp	w10, w13, [x9, #16]
	mov	w14, #1
	stp	w14, w8, [x9]
	stp	x13, x10, [sp, #24]
	stp	x11, x12, [sp, #8]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_DRM_DEBUG_KMS
	add	x8, x20, x26
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, #1
	b	LBB0_4
LBB0_13:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_14:
	cbz	w25, LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping SDVO device mapping\n"

	.comm	_SLAVE_ADDR1,8,3                ; @SLAVE_ADDR1
	.comm	_SLAVE_ADDR2,8,3                ; @SLAVE_ADDR2
	.comm	_DEVICE_PORT_DVOB,4,2           ; @DEVICE_PORT_DVOB
	.comm	_DEVICE_PORT_DVOC,4,2           ; @DEVICE_PORT_DVOC
l_.str.1:                               ; @.str.1
	.asciz	"Incorrect SDVO port. Skip it\n"

l_.str.2:                               ; @.str.2
	.asciz	"the SDVO device with slave addr %2x is found on %s port\n"

l_.str.3:                               ; @.str.3
	.asciz	"SDVOB"

l_.str.4:                               ; @.str.4
	.asciz	"SDVOC"

l_.str.5:                               ; @.str.5
	.asciz	"SDVO device: dvo=%x, addr=%x, wiring=%d, ddc_pin=%d, i2c_pin=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Maybe one SDVO port is shared by two SDVO device.\n"

l_.str.7:                               ; @.str.7
	.asciz	"there exists the slave2_addr. Maybe this is a SDVO device with multiple inputs.\n"

l_.str.8:                               ; @.str.8
	.asciz	"No SDVO device info is found in VBT\n"

	.no_dead_strip	_parse_sdvo_device_mapping
.subsections_via_symbols
