	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_set_hpd_interrupt_state
_dce_v6_0_set_hpd_interrupt_state:      ## @dce_v6_0_set_hpd_interrupt_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%edx, (%rdi)
	jbe	LBB0_1
## %bb.2:
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.4:
	movq	_mmDC_HPD1_INT_CONTROL@GOTPCREL(%rip), %r14
	movq	_hpd_offsets@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%edx, %ebx
	movq	(%rax,%rbx,8), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r14), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_DRM_DEBUG
	jmp	LBB0_7
LBB0_5:
	movq	_mmDC_HPD1_INT_CONTROL@GOTPCREL(%rip), %r14
	movq	_hpd_offsets@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%edx, %ebx
	movq	(%rax,%rbx,8), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
LBB0_6:
	callq	_WREG32
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid hdp %d\n"

	.comm	_mmDC_HPD1_INT_CONTROL,8,3      ## @mmDC_HPD1_INT_CONTROL
	.comm	_hpd_offsets,8,3                ## @hpd_offsets
	.comm	_DC_HPDx_INT_EN,4,2             ## @DC_HPDx_INT_EN
	.no_dead_strip	_dce_v6_0_set_hpd_interrupt_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_set_hpd_interrupt_state
_dce_v6_0_set_hpd_interrupt_state:      ; @dce_v6_0_set_hpd_interrupt_state
	.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
	ldr	w8, [x0]
	cmp	w8, w2
	b.ls	LBB0_4
; %bb.1:
	cmp	w3, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w3, #129
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x19, _mmDC_HPD1_INT_CONTROL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mmDC_HPD1_INT_CONTROL@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _hpd_offsets@GOTPAGE
Lloh3:
	ldr	x20, [x20, _hpd_offsets@GOTPAGEOFF]
	ldr	x9, [x20]
	mov	w10, w2
	lsl	x21, x10, #3
	ldr	x9, [x9, x21]
	add	x0, x9, x8
	bl	_RREG32
Lloh4:
	adrp	x8, _DC_HPDx_INT_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_HPDx_INT_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w1, w0, w8
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_DRM_DEBUG
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x19, _mmDC_HPD1_INT_CONTROL@GOTPAGE
Lloh10:
	ldr	x19, [x19, _mmDC_HPD1_INT_CONTROL@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh11:
	adrp	x20, _hpd_offsets@GOTPAGE
Lloh12:
	ldr	x20, [x20, _hpd_offsets@GOTPAGEOFF]
	ldr	x9, [x20]
	mov	w10, w2
	lsl	x21, x10, #3
	ldr	x9, [x9, x21]
	add	x0, x9, x8
	bl	_RREG32
Lloh13:
	adrp	x8, _DC_HPDx_INT_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DC_HPDx_INT_EN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w1, w8, w0
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9, x21]
	add	x0, x9, x8
	bl	_WREG32
LBB0_7:
	mov	w0, #0
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid hdp %d\n"

	.comm	_mmDC_HPD1_INT_CONTROL,8,3      ; @mmDC_HPD1_INT_CONTROL
	.comm	_hpd_offsets,8,3                ; @hpd_offsets
	.comm	_DC_HPDx_INT_EN,4,2             ; @DC_HPDx_INT_EN
	.no_dead_strip	_dce_v6_0_set_hpd_interrupt_state
.subsections_via_symbols
