	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_program_interrupt_vectors
_rv770_program_interrupt_vectors:       ## @rv770_program_interrupt_vectors
	.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
	movl	%ecx, %r14d
	testb	$3, %r14b
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_2:
	movq	%rdx, %r13
	movq	_FIRST_SMC_INT_VECT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%esi, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	cmpl	%r14d, %eax
	jg	LBB0_8
## %bb.4:
	subl	%eax, %r14d
	cltq
	leaq	(%r13,%rax,4), %r13
LBB0_5:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.6:
	movq	_SMC_ISR_FFD8_FFDB@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %eax
	movl	4(%r13,%rbx,4), %ecx
	shll	$24, %eax
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	8(%r13,%rbx,4), %esi
	shll	$8, %esi
	orl	%ecx, %esi
	orl	12(%r13,%rbx,4), %esi
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_WREG32
	addq	$4, %rbx
	cmpl	%ebx, %r14d
	jg	LBB0_7
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FIRST_SMC_INT_VECT_REG,4,2     ## @FIRST_SMC_INT_VECT_REG
	.comm	_SMC_ISR_FFD8_FFDB,8,3          ## @SMC_ISR_FFD8_FFDB
	.no_dead_strip	_rv770_program_interrupt_vectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_program_interrupt_vectors
_rv770_program_interrupt_vectors:       ; @rv770_program_interrupt_vectors
	.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
	tst	w3, #0x3
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x3
	mov	x20, x2
Lloh3:
	adrp	x8, _FIRST_SMC_INT_VECT_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIRST_SMC_INT_VECT_REG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	subs	w8, w8, w1
	b.le	LBB0_5
; %bb.3:
	cmp	w8, w19
	b.gt	LBB0_8
; %bb.4:
	sub	w19, w19, w8
	add	x20, x20, w8, sxtw #2
LBB0_5:
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x21, #0
Lloh6:
	adrp	x22, _SMC_ISR_FFD8_FFDB@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SMC_ISR_FFD8_FFDB@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x21, lsl #2
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #8
	orr	w1, w9, w8
	ldr	x8, [x22]
	add	x0, x21, x8
	bl	_WREG32
	add	x21, x21, #4
	cmp	w19, w21
	b.gt	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FIRST_SMC_INT_VECT_REG,4,2     ; @FIRST_SMC_INT_VECT_REG
	.comm	_SMC_ISR_FFD8_FFDB,8,3          ; @SMC_ISR_FFD8_FFDB
	.no_dead_strip	_rv770_program_interrupt_vectors
.subsections_via_symbols
