	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs600_irq_ack
_rs600_irq_ack:                         ## @rs600_irq_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_R_000044_GEN_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_S_000044_SW_INT
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_G_000044_DISPLAY_INT_STAT
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_R_007EDC_DISP_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_G_007EDC_LB_D1_VBLANK_INTERRUPT
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_R_006534_D1MODE_VBLANK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$1, %edi
	callq	_S_006534_D1MODE_VBLANK_ACK
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_WREG32
LBB0_3:
	movl	(%r13), %edi
	callq	_G_007EDC_LB_D2_VBLANK_INTERRUPT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_R_006D34_D2MODE_VBLANK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$1, %edi
	callq	_S_006D34_D2MODE_VBLANK_ACK
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_WREG32
LBB0_5:
	movl	(%r13), %edi
	callq	_G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_S_007D08_DC_HOT_PLUG_DETECT1_INT_ACK
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_WREG32
LBB0_7:
	movl	(%r13), %edi
	callq	_G_007EDC_DC_HOT_PLUG_DETECT2_INTERRUPT
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_S_007D18_DC_HOT_PLUG_DETECT2_INT_ACK
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_WREG32
	jmp	LBB0_10
LBB0_9:
	movl	$0, (%r13)
LBB0_10:
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE2
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_R_007404_HDMI0_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_S_007404_HDMI0_AZ_FORMAT_WTRIG
	andl	%eax, %ebx
	movl	%ebx, 4(%r13)
	movl	%ebx, %edi
	callq	_G_007404_HDMI0_AZ_FORMAT_WTRIG
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_R_007408_HDMI0_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_S_007408_HDMI0_AZ_FORMAT_WTRIG_ACK
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_WREG32
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_16
LBB0_15:
	movq	_R_000044_GEN_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_WREG32
LBB0_16:
	andl	%r15d, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$0, 4(%r13)
	testl	%r15d, %r15d
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_R_000044_GEN_INT_STATUS,4,2    ## @R_000044_GEN_INT_STATUS
	.comm	_R_007EDC_DISP_INTERRUPT_STATUS,4,2 ## @R_007EDC_DISP_INTERRUPT_STATUS
	.comm	_R_006534_D1MODE_VBLANK_STATUS,4,2 ## @R_006534_D1MODE_VBLANK_STATUS
	.comm	_R_006D34_D2MODE_VBLANK_STATUS,4,2 ## @R_006D34_D2MODE_VBLANK_STATUS
	.comm	_R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL,4,2 ## @R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL
	.comm	_R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL,4,2 ## @R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL
	.comm	_R_007404_HDMI0_STATUS,4,2      ## @R_007404_HDMI0_STATUS
	.comm	_R_007408_HDMI0_AUDIO_PACKET_CONTROL,4,2 ## @R_007408_HDMI0_AUDIO_PACKET_CONTROL
	.no_dead_strip	_rs600_irq_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs600_irq_ack
_rs600_irq_ack:                         ; @rs600_irq_ack
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
Lloh0:
	adrp	x23, _R_000044_GEN_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _R_000044_GEN_INT_STATUS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_RREG32
	mov	x19, x0
	mov	w0, #1
	bl	_S_000044_SW_INT
	mov	x20, x0
	mov	x0, x19
	bl	_G_000044_DISPLAY_INT_STAT
	cbz	x0, LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _R_007EDC_DISP_INTERRUPT_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_007EDC_DISP_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_RREG32
	str	w0, [x21]
	bl	_G_007EDC_LB_D1_VBLANK_INTERRUPT
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _R_006534_D1MODE_VBLANK_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_006534_D1MODE_VBLANK_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_S_006534_D1MODE_VBLANK_ACK
	mov	x1, x0
	mov	x0, x22
	bl	_WREG32
LBB0_3:
	ldr	w0, [x21]
	bl	_G_007EDC_LB_D2_VBLANK_INTERRUPT
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _R_006D34_D2MODE_VBLANK_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R_006D34_D2MODE_VBLANK_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_S_006D34_D2MODE_VBLANK_ACK
	mov	x1, x0
	mov	x0, x22
	bl	_WREG32
LBB0_5:
	ldr	w0, [x21]
	bl	_G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x24, _R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGE
Lloh12:
	ldr	x24, [x24, _R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_RREG32
	mov	x22, x0
	mov	w0, #1
	bl	_S_007D08_DC_HOT_PLUG_DETECT1_INT_ACK
	orr	w1, w0, w22
	ldr	w0, [x24]
	bl	_WREG32
LBB0_7:
	ldr	w0, [x21]
	bl	_G_007EDC_DC_HOT_PLUG_DETECT2_INTERRUPT
	cbz	x0, LBB0_10
; %bb.8:
Lloh13:
	adrp	x24, _R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGE
Lloh14:
	ldr	x24, [x24, _R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_RREG32
	mov	x22, x0
	mov	w0, #1
	bl	_S_007D18_DC_HOT_PLUG_DETECT2_INT_ACK
	orr	w1, w0, w22
	ldr	w0, [x24]
	bl	_WREG32
	b	LBB0_10
LBB0_9:
	str	wzr, [x21]
LBB0_10:
	mov	x0, x21
	bl	_ASIC_IS_DCE2
	cbz	x0, LBB0_16
; %bb.11:
Lloh15:
	adrp	x8, _R_007404_HDMI0_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R_007404_HDMI0_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x22, x0
	mov	w0, #1
	bl	_S_007404_HDMI0_AZ_FORMAT_WTRIG
	and	w0, w0, w22
	str	w0, [x21, #4]
	bl	_G_007404_HDMI0_AZ_FORMAT_WTRIG
	cbz	x0, LBB0_13
; %bb.12:
Lloh18:
	adrp	x22, _R_007408_HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh19:
	ldr	x22, [x22, _R_007408_HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
	mov	x21, x0
	mov	w0, #1
	bl	_S_007408_HDMI0_AZ_FORMAT_WTRIG_ACK
	orr	w1, w0, w21
	ldr	w0, [x22]
	bl	_WREG32
LBB0_13:
	cbz	w19, LBB0_15
LBB0_14:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_WREG32
LBB0_15:
	and	w0, w20, w19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	str	wzr, [x21, #4]
	cbnz	w19, LBB0_14
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_R_000044_GEN_INT_STATUS,4,2    ; @R_000044_GEN_INT_STATUS
	.comm	_R_007EDC_DISP_INTERRUPT_STATUS,4,2 ; @R_007EDC_DISP_INTERRUPT_STATUS
	.comm	_R_006534_D1MODE_VBLANK_STATUS,4,2 ; @R_006534_D1MODE_VBLANK_STATUS
	.comm	_R_006D34_D2MODE_VBLANK_STATUS,4,2 ; @R_006D34_D2MODE_VBLANK_STATUS
	.comm	_R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL,4,2 ; @R_007D08_DC_HOT_PLUG_DETECT1_INT_CONTROL
	.comm	_R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL,4,2 ; @R_007D18_DC_HOT_PLUG_DETECT2_INT_CONTROL
	.comm	_R_007404_HDMI0_STATUS,4,2      ; @R_007404_HDMI0_STATUS
	.comm	_R_007408_HDMI0_AUDIO_PACKET_CONTROL,4,2 ; @R_007408_HDMI0_AUDIO_PACKET_CONTROL
	.no_dead_strip	_rs600_irq_ack
.subsections_via_symbols
