	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dp_get_panel_mode              ## -- Begin function dp_get_panel_mode
	.p2align	4, 0x90
_dp_get_panel_mode:                     ## @dp_get_panel_mode
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_SIGNAL_TYPE_DISPLAY_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.3:
	movl	24(%rbx), %edi
	movq	_DP_VGA_LVDS_CONVERTER_ID_2@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movl	24(%rbx), %edi
	movq	_DP_VGA_LVDS_CONVERTER_ID_3@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_DP_PANEL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_DP_PANEL_MODE_EDP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_DP_PANEL_MODE_SPECIAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,8,3   ## @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_DP_VGA_LVDS_CONVERTER_ID_2,4,2 ## @DP_VGA_LVDS_CONVERTER_ID_2
	.comm	_DP_PANEL_MODE_SPECIAL,4,2      ## @DP_PANEL_MODE_SPECIAL
	.comm	_DP_VGA_LVDS_CONVERTER_ID_3,4,2 ## @DP_VGA_LVDS_CONVERTER_ID_3
	.comm	_DP_PANEL_MODE_EDP,4,2          ## @DP_PANEL_MODE_EDP
	.comm	_DP_PANEL_MODE_DEFAULT,4,2      ## @DP_PANEL_MODE_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dp_get_panel_mode              ; -- Begin function dp_get_panel_mode
	.p2align	2
_dp_get_panel_mode:                     ; @dp_get_panel_mode
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _DP_VGA_LVDS_CONVERTER_ID_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_VGA_LVDS_CONVERTER_ID_2@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x8, _DP_VGA_LVDS_CONVERTER_ID_3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_VGA_LVDS_CONVERTER_ID_3@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strncmp
	cbz	w0, LBB0_8
LBB0_6:
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _DP_PANEL_MODE_EDP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DP_PANEL_MODE_EDP@GOTPAGEOFF]
Lloh9:
	adrp	x10, _DP_PANEL_MODE_DEFAULT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DP_PANEL_MODE_DEFAULT@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x8, _DP_PANEL_MODE_SPECIAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DP_PANEL_MODE_SPECIAL@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,8,3   ; @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_DP_VGA_LVDS_CONVERTER_ID_2,4,2 ; @DP_VGA_LVDS_CONVERTER_ID_2
	.comm	_DP_PANEL_MODE_SPECIAL,4,2      ; @DP_PANEL_MODE_SPECIAL
	.comm	_DP_VGA_LVDS_CONVERTER_ID_3,4,2 ; @DP_VGA_LVDS_CONVERTER_ID_3
	.comm	_DP_PANEL_MODE_EDP,4,2          ; @DP_PANEL_MODE_EDP
	.comm	_DP_PANEL_MODE_DEFAULT,4,2      ; @DP_PANEL_MODE_DEFAULT
.subsections_via_symbols
