	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_get_plug_in_status ## -- Begin function analogix_dp_get_plug_in_status
	.p2align	4, 0x90
_analogix_dp_get_plug_in_status:        ## @analogix_dp_get_plug_in_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_gpiod_get_value
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_3
LBB0_4:
	popq	%rbp
	retq
LBB0_2:
	movq	_ANALOGIX_DP_SYS_CTL_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, %ecx
	movq	_HPD_STATUS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANALOGIX_DP_SYS_CTL_3,8,3      ## @ANALOGIX_DP_SYS_CTL_3
	.comm	_HPD_STATUS,4,2                 ## @HPD_STATUS
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_get_plug_in_status ; -- Begin function analogix_dp_get_plug_in_status
	.p2align	2
_analogix_dp_get_plug_in_status:        ; @analogix_dp_get_plug_in_status
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_gpiod_get_value
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ANALOGIX_DP_SYS_CTL_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ANALOGIX_DP_SYS_CTL_3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _HPD_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPD_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ANALOGIX_DP_SYS_CTL_3,8,3      ; @ANALOGIX_DP_SYS_CTL_3
	.comm	_HPD_STATUS,4,2                 ; @HPD_STATUS
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
