	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_get_irq_type       ## -- Begin function analogix_dp_get_irq_type
	.p2align	4, 0x90
_analogix_dp_get_irq_type:              ## @analogix_dp_get_irq_type
	.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_3
## %bb.1:
	movq	%rax, %rdi
	callq	_gpiod_get_value
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_2
LBB0_3:
	movq	_ANALOGIX_DP_COMMON_INT_STA_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_readl
	movq	_PLUG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_5:
	movq	_DP_IRQ_TYPE_HP_CABLE_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_HPD_LOST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_2:
	movq	_DP_IRQ_TYPE_HP_CABLE_OUT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_HOTPLUG_CHG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	_DP_IRQ_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_DP_IRQ_TYPE_HP_CHANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_IRQ_TYPE_HP_CABLE_IN,4,2    ## @DP_IRQ_TYPE_HP_CABLE_IN
	.comm	_DP_IRQ_TYPE_HP_CABLE_OUT,4,2   ## @DP_IRQ_TYPE_HP_CABLE_OUT
	.comm	_ANALOGIX_DP_COMMON_INT_STA_4,8,3 ## @ANALOGIX_DP_COMMON_INT_STA_4
	.comm	_PLUG,4,2                       ## @PLUG
	.comm	_HPD_LOST,4,2                   ## @HPD_LOST
	.comm	_HOTPLUG_CHG,4,2                ## @HOTPLUG_CHG
	.comm	_DP_IRQ_TYPE_HP_CHANGE,4,2      ## @DP_IRQ_TYPE_HP_CHANGE
	.comm	_DP_IRQ_TYPE_UNKNOWN,4,2        ## @DP_IRQ_TYPE_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_get_irq_type       ; -- Begin function analogix_dp_get_irq_type
	.p2align	2
_analogix_dp_get_irq_type:              ; @analogix_dp_get_irq_type
	.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_2
; %bb.1:
	bl	_gpiod_get_value
Lloh0:
	adrp	x8, _DP_IRQ_TYPE_HP_CABLE_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_IRQ_TYPE_HP_CABLE_IN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DP_IRQ_TYPE_HP_CABLE_OUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DP_IRQ_TYPE_HP_CABLE_OUT@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_7
LBB0_2:
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _ANALOGIX_DP_COMMON_INT_STA_4@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ANALOGIX_DP_COMMON_INT_STA_4@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh7:
	adrp	x8, _PLUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PLUG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _DP_IRQ_TYPE_HP_CABLE_IN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DP_IRQ_TYPE_HP_CABLE_IN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _HPD_LOST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPD_LOST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _DP_IRQ_TYPE_HP_CABLE_OUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DP_IRQ_TYPE_HP_CABLE_OUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _HOTPLUG_CHG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HOTPLUG_CHG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _DP_IRQ_TYPE_HP_CHANGE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DP_IRQ_TYPE_HP_CHANGE@GOTPAGEOFF]
Lloh22:
	adrp	x10, _DP_IRQ_TYPE_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _DP_IRQ_TYPE_UNKNOWN@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_IRQ_TYPE_HP_CABLE_IN,4,2    ; @DP_IRQ_TYPE_HP_CABLE_IN
	.comm	_DP_IRQ_TYPE_HP_CABLE_OUT,4,2   ; @DP_IRQ_TYPE_HP_CABLE_OUT
	.comm	_ANALOGIX_DP_COMMON_INT_STA_4,8,3 ; @ANALOGIX_DP_COMMON_INT_STA_4
	.comm	_PLUG,4,2                       ; @PLUG
	.comm	_HPD_LOST,4,2                   ; @HPD_LOST
	.comm	_HOTPLUG_CHG,4,2                ; @HOTPLUG_CHG
	.comm	_DP_IRQ_TYPE_HP_CHANGE,4,2      ; @DP_IRQ_TYPE_HP_CHANGE
	.comm	_DP_IRQ_TYPE_UNKNOWN,4,2        ; @DP_IRQ_TYPE_UNKNOWN
.subsections_via_symbols
