	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpd_ack
_hpd_ack:                               ## @hpd_ack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rsi
	movl	(%rdi), %edi
	callq	_dm_read_reg
	movq	_HPD0_DC_HPD_INT_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DC_HPD_SENSE_DELAYED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_get_reg_field_value
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dal_irq_service_ack_generic
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	callq	_dm_read_reg
	movq	%rax, %r12
	xorl	%esi, %esi
	testq	%r15, %r15
	sete	%sil
	movq	_HPD0_DC_HPD_INT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DC_HPD_INT_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_set_reg_field_value
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	movq	%r12, %rdx
	callq	_dm_write_reg
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPD0_DC_HPD_INT_STATUS,4,2     ## @HPD0_DC_HPD_INT_STATUS
	.comm	_DC_HPD_SENSE_DELAYED,4,2       ## @DC_HPD_SENSE_DELAYED
	.comm	_HPD0_DC_HPD_INT_CONTROL,4,2    ## @HPD0_DC_HPD_INT_CONTROL
	.comm	_DC_HPD_INT_POLARITY,4,2        ## @DC_HPD_INT_POLARITY
	.no_dead_strip	_hpd_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpd_ack
_hpd_ack:                               ; @hpd_ack
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x1, [x1, #8]
	ldr	w0, [x0]
	bl	_dm_read_reg
Lloh0:
	adrp	x8, _HPD0_DC_HPD_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPD0_DC_HPD_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DC_HPD_SENSE_DELAYED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_HPD_SENSE_DELAYED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_get_reg_field_value
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dal_irq_service_ack_generic
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_dm_read_reg
	mov	x22, x0
	cmp	x21, #0
	cset	w1, eq
Lloh6:
	adrp	x8, _HPD0_DC_HPD_INT_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPD0_DC_HPD_INT_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DC_HPD_INT_POLARITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DC_HPD_INT_POLARITY@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_set_reg_field_value
	ldr	w0, [x20]
	ldr	x1, [x19]
	mov	x2, x22
	bl	_dm_write_reg
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPD0_DC_HPD_INT_STATUS,4,2     ; @HPD0_DC_HPD_INT_STATUS
	.comm	_DC_HPD_SENSE_DELAYED,4,2       ; @DC_HPD_SENSE_DELAYED
	.comm	_HPD0_DC_HPD_INT_CONTROL,4,2    ; @HPD0_DC_HPD_INT_CONTROL
	.comm	_DC_HPD_INT_POLARITY,4,2        ; @DC_HPD_INT_POLARITY
	.no_dead_strip	_hpd_ack
.subsections_via_symbols
