	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atombios_get_connector_object_id
_atombios_get_connector_object_id:      ## @atombios_get_connector_object_id
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_15
## %bb.1:
	movq	_DRM_MODE_CONNECTOR_DVII@GOTPCREL(%rip), %r15
	cmpl	%ebx, (%r15)
	je	LBB0_3
## %bb.2:
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_15
LBB0_3:
	movq	_ATOM_DEVICE_DFP2_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_15
## %bb.4:
	movq	8(%rax), %r14
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XTMDS_Info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-32(%rbp), %r8
	leaq	-28(%rbp), %r9
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movslq	(%r14), %rcx
	movslq	-28(%rbp), %rdx
	movq	_ATOM_XTMDS_SUPPORTED_DUALLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	testl	%esi, (%rdx,%rcx)
	je	LBB0_10
## %bb.6:
	cmpl	%ebx, %eax
	jne	LBB0_7
## %bb.8:
	movq	_CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_15:
	movq	_supported_devices_connector_object_id_convert@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_supported_devices_connector_object_id_convert@GOTPCREL(%rip), %rax
	movslq	%ebx, %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movl	(%rcx), %eax
	jmp	LBB0_16
LBB0_10:
	cmpl	%ebx, %eax
	jne	LBB0_11
## %bb.12:
	movq	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_7:
	movq	_CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_11:
	movq	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.comm	_supported_devices_connector_object_id_convert,8,3 ## @supported_devices_connector_object_id_convert
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ## @DRM_MODE_CONNECTOR_DVII
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ## @DRM_MODE_CONNECTOR_DVID
	.comm	_ATOM_DEVICE_DFP2_SUPPORT,4,2   ## @ATOM_DEVICE_DFP2_SUPPORT
	.comm	_DATA,4,2                       ## @DATA
	.comm	_XTMDS_Info,4,2                 ## @XTMDS_Info
	.comm	_ATOM_XTMDS_SUPPORTED_DUALLINK,4,2 ## @ATOM_XTMDS_SUPPORTED_DUALLINK
	.comm	_CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I,4,2 ## @CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I
	.comm	_CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D,4,2 ## @CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I,4,2 ## @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D,4,2 ## @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
	.no_dead_strip	_atombios_get_connector_object_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atombios_get_connector_object_id
_atombios_get_connector_object_id:      ; @atombios_get_connector_object_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _RADEON_IS_IGP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x21, _DRM_MODE_CONNECTOR_DVII@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DRM_MODE_CONNECTOR_DVII@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh5:
	adrp	x10, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w19
	ccmp	w10, w19, #4, ne
	b.ne	LBB0_6
; %bb.2:
Lloh8:
	adrp	x9, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATOM_DEVICE_DFP2_SUPPORT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w2
	b.eq	LBB0_6
; %bb.3:
	ldr	x20, [x8, #8]
Lloh11:
	adrp	x8, _DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _XTMDS_Info@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XTMDS_Info@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	add	x2, sp, #12
	add	x3, sp, #4
	mov	x4, sp
	add	x5, sp, #8
	mov	x0, x20
	bl	_atom_parse_data_header
	cbz	x0, LBB0_8
; %bb.4:
	ldrsw	x8, [x20]
	ldrsw	x9, [sp, #8]
	ldr	w9, [x9, x8]
Lloh17:
	adrp	x8, _ATOM_XTMDS_SUPPORTED_DUALLINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATOM_XTMDS_SUPPORTED_DUALLINK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x8]
	ldr	w8, [x21]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.5:
Lloh20:
	adrp	x9, _CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D@GOTPAGEOFF]
Lloh22:
	adrp	x10, _CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I@GOTPAGE
Lloh23:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh24:
	adrp	x8, _supported_devices_connector_object_id_convert@GOTPAGE
Lloh25:
	ldr	x8, [x8, _supported_devices_connector_object_id_convert@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w0, [x8, w19, sxtw #2]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh27:
	adrp	x8, _supported_devices_connector_object_id_convert@GOTPAGE
Lloh28:
	ldr	x8, [x8, _supported_devices_connector_object_id_convert@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #2
	ldr	w0, [x8]
	b	LBB0_7
LBB0_9:
Lloh30:
	adrp	x9, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D@GOTPAGEOFF]
Lloh32:
	adrp	x10, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGE
Lloh33:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I@GOTPAGEOFF]
LBB0_10:
	cmp	w8, w19
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.comm	_supported_devices_connector_object_id_convert,8,3 ; @supported_devices_connector_object_id_convert
	.comm	_DRM_MODE_CONNECTOR_DVII,4,2    ; @DRM_MODE_CONNECTOR_DVII
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ; @DRM_MODE_CONNECTOR_DVID
	.comm	_ATOM_DEVICE_DFP2_SUPPORT,4,2   ; @ATOM_DEVICE_DFP2_SUPPORT
	.comm	_DATA,4,2                       ; @DATA
	.comm	_XTMDS_Info,4,2                 ; @XTMDS_Info
	.comm	_ATOM_XTMDS_SUPPORTED_DUALLINK,4,2 ; @ATOM_XTMDS_SUPPORTED_DUALLINK
	.comm	_CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I,4,2 ; @CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I
	.comm	_CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D,4,2 ; @CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I,4,2 ; @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I
	.comm	_CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D,4,2 ; @CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
	.no_dead_strip	_atombios_get_connector_object_id
.subsections_via_symbols
