	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irq_set
_irq_set:                               ## @irq_set
	.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	_platform_irq_mappings@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%edi, %eax
	movq	(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:
	movq	_scp_to_intc_enable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r14
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movb	(%r15), %al
	testb	%al, %al
	js	LBB0_7
## %bb.5:
	incq	%r15
	movq	_S6_REG_INTC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movsbl	%al, %edi
	callq	_INTC_CFG
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_writel
	movzbl	(%r15), %eax
	incq	%r15
	testb	%al, %al
	jns	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_platform_irq_mappings,8,3      ## @platform_irq_mappings
	.comm	_scp_to_intc_enable,8,3         ## @scp_to_intc_enable
	.comm	_S6_REG_INTC,8,3                ## @S6_REG_INTC
	.no_dead_strip	_irq_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irq_set
_irq_set:                               ; @irq_set
	.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
Lloh0:
	adrp	x8, _platform_irq_mappings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _platform_irq_mappings@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	cbz	x8, LBB0_6
; %bb.1:
	cbz	w1, LBB0_3
; %bb.2:
	mov	w9, w0
Lloh3:
	adrp	x10, _scp_to_intc_enable@GOTPAGE
Lloh4:
	ldr	x10, [x10, _scp_to_intc_enable@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x19, [x10, x9, lsl #3]
	ldrsb	w9, [x8]
	tbz	w9, #31, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x19, #0
	ldrsb	w9, [x8]
	tbnz	w9, #31, LBB0_6
LBB0_4:
	add	x20, x8, #1
Lloh6:
	adrp	x21, _S6_REG_INTC@GOTPAGE
Lloh7:
	ldr	x21, [x21, _S6_REG_INTC@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x21]
	sxtb	w0, w9
	bl	_INTC_CFG
	add	x1, x0, x22
	mov	x0, x19
	bl	_writel
	ldrsb	w9, [x20], #1
	tbz	w9, #31, LBB0_5
LBB0_6:
	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	_platform_irq_mappings,8,3      ; @platform_irq_mappings
	.comm	_scp_to_intc_enable,8,3         ; @scp_to_intc_enable
	.comm	_S6_REG_INTC,8,3                ; @S6_REG_INTC
	.no_dead_strip	_irq_set
.subsections_via_symbols
