	.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	%rsi, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_BDB_GENERAL_DEFINITIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	cmpl	$40, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_get_blocksize
	cltq
	addq	$-16, %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	shrq	$5, %rdx
	leaq	L_.str.9(%rip), %rdi
	testl	%edx, %edx
	jle	LBB0_2
## %bb.6:
	movl	%edx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %r12
	movq	_SLAVE_ADDR1@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_SLAVE_ADDR1@GOTPCREL(%rip), %rax
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$40, %r14
	cmpq	%r14, %r12
	je	LBB0_21
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r13
	cmpl	$0, 36(%r13,%r14)
	je	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13,%r14), %rsi
	cmpq	(%rax), %rsi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_SLAVE_ADDR2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_20
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r13,%r14), %eax
	movq	_DEVICE_PORT_DVOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_DEVICE_PORT_DVOC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%ecx, %eax
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	8(%r13,%r14), %rsi
	leaq	-1(%rsi), %rdi
	shlq	$5, %rdi
	cmpl	$0, (%rax,%rdi)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpq	$0, 16(%r13,%r14)
	je	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r15d
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rax,%rdi), %r10
	movl	%esi, 4(%rax,%rdi)
	movq	(%r13,%r14), %rdx
	movq	%rdx, 8(%rax,%rdi)
	movl	32(%r13,%r14), %ecx
	movl	%ecx, 24(%rax,%rdi)
	movl	28(%r13,%r14), %r8d
	movl	%r8d, 20(%rax,%rdi)
	movl	24(%r13,%r14), %r9d
	movl	%r9d, 16(%rax,%rdi)
	movl	$1, (%r10)
	leaq	L_.str.6(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	cmpq	$0, 16(%r13,%r14)
	jne	LBB0_17
	jmp	LBB0_18
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
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
LBB0_21:
	testl	%r15d, %r15d
	leaq	L_.str.9(%rip), %rdi
	je	LBB0_2
## %bb.22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_GENERAL_DEFINITIONS,4,2    ## @BDB_GENERAL_DEFINITIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No general definition block is found, unable to construct sdvo mapping.\n"

L_.str.1:                               ## @.str.1
	.asciz	"different child size is found. Invalid.\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.2:                               ## @.str.2
	.asciz	"Incorrect SDVO port. Skip it\n"

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

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

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

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

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

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

L_.str.9:                               ## @.str.9
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _BDB_GENERAL_DEFINITIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BDB_GENERAL_DEFINITIONS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_find_section
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #40
	b.ne	LBB0_16
; %bb.2:
	mov	x0, x20
	bl	_get_blocksize
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x8, x8, #16
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	umulh	x8, x8, x9
	lsr	x8, x8, #5
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.3:
	mov	x27, #0
	mov	w26, #0
	and	x9, x8, #0xffffffff
	add	x8, x9, w8, uxtw #2
Lloh3:
	adrp	x28, _SLAVE_ADDR1@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SLAVE_ADDR1@GOTPAGEOFF]
Lloh5:
	adrp	x22, _SLAVE_ADDR2@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SLAVE_ADDR2@GOTPAGEOFF]
Lloh7:
	adrp	x24, _DEVICE_PORT_DVOC@GOTPAGE
Lloh8:
	ldr	x24, [x24, _DEVICE_PORT_DVOC@GOTPAGEOFF]
	lsl	x21, x8, #3
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #40
	cmp	x21, x27
	b.eq	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20, #8]
	add	x8, x25, x27
	ldr	w8, [x8, #36]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, x27]
	ldr	x9, [x28]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x25, x27
	ldr	w9, [x23, #8]
Lloh11:
	adrp	x10, _DEVICE_PORT_DVOB@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DEVICE_PORT_DVOB@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	w11, [x24]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, w10
Lloh14:
	adrp	x9, l_.str.5@PAGE
Lloh15:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh16:
	adrp	x10, l_.str.4@PAGE
Lloh17:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x9, [x19]
	ldrsw	x8, [x23, #8]
	sub	x10, x8, #1
	add	x9, x9, x10, lsl #5
	ldr	w10, [x9]
	cbz	w10, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x25, x27
	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]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_DRM_DEBUG_KMS
	add	x8, x25, x27
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w26, #1
	b	LBB0_5
LBB0_15:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_16:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_17:
	cbz	w26, LBB0_19
; %bb.18:
	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_19:
Lloh30:
	adrp	x0, l_.str.9@PAGE
Lloh31:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_20:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_GENERAL_DEFINITIONS,4,2    ; @BDB_GENERAL_DEFINITIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No general definition block is found, unable to construct sdvo mapping.\n"

l_.str.1:                               ; @.str.1
	.asciz	"different child size is found. Invalid.\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.2:                               ; @.str.2
	.asciz	"Incorrect SDVO port. Skip it\n"

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

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

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

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

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

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

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

	.no_dead_strip	_parse_sdvo_device_mapping
.subsections_via_symbols
