	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_asic_assign_irq            ## -- Begin function gsc_asic_assign_irq
	.p2align	4, 0x90
_gsc_asic_assign_irq:                   ## @gsc_asic_assign_irq
	.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
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movslq	%esi, %r15
	movl	(%rax,%r15,4), %eax
	testl	%eax, %eax
	jg	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_gsc_asic_interrupt_type@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_gsc_assign_irq
	movq	_NO_IRQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
LBB0_3:
	movl	%eax, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gsc_asic_interrupt_type,4,2    ## @gsc_asic_interrupt_type
	.comm	_NO_IRQ,4,2                     ## @NO_IRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_asic_assign_irq            ; -- Begin function gsc_asic_assign_irq
	.p2align	2
_gsc_asic_assign_irq:                   ; @gsc_asic_assign_irq
	.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, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8, w1, sxtw #2]
	cmp	w0, #0
	b.gt	LBB0_3
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x0, _gsc_asic_interrupt_type@GOTPAGE
Lloh1:
	ldr	x0, [x0, _gsc_asic_interrupt_type@GOTPAGEOFF]
	mov	x1, x20
	bl	_gsc_assign_irq
Lloh2:
	adrp	x8, _NO_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NO_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.2:
	sxtw	x8, w21
	ldr	x9, [x20]
	str	w0, [x9, x8, lsl #2]
LBB0_3:
	str	w0, [x19]
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gsc_asic_interrupt_type,4,2    ; @gsc_asic_interrupt_type
	.comm	_NO_IRQ,4,2                     ; @NO_IRQ
.subsections_via_symbols
