	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_gic_register_isrcs
_arm_gic_register_isrcs:                ## @arm_gic_register_isrcs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	shll	$4, %edi
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_device_get_nameunit
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	$12, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -12(%r14)
	movq	_INTR_POLARITY_CONFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_INTR_TRIGGER_CONFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%r14)
	leaq	-8(%r14), %rdi
	movq	_GIC_LAST_SGI@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GIC_LAST_PPI@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	16(%rbx), %esi
	cmpq	%rax, %r13
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r9
	movq	_GIC_FIRST_SPI@GOTPCREL(%rip), %rax
	subq	(%rax), %r9
	xorl	%edx, %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %esi
	movq	_INTR_ISRCF_IPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %r9
	movq	_GIC_FIRST_SGI@GOTPCREL(%rip), %rax
	subq	(%rax), %r9
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_INTR_ISRCF_PPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %r9
	movq	_GIC_FIRST_PPI@GOTPCREL(%rip), %rax
	subq	(%rax), %r9
	leaq	L_.str.1(%rip), %rcx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %r8
	callq	_intr_isrc_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$16, %r14
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_3
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_9:
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_INTR_POLARITY_CONFORM,4,2      ## @INTR_POLARITY_CONFORM
	.comm	_INTR_TRIGGER_CONFORM,4,2       ## @INTR_TRIGGER_CONFORM
	.comm	_GIC_LAST_SGI,4,2               ## @GIC_LAST_SGI
	.comm	_INTR_ISRCF_IPI,4,2             ## @INTR_ISRCF_IPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s,i%u"

	.comm	_GIC_FIRST_SGI,8,3              ## @GIC_FIRST_SGI
	.comm	_GIC_LAST_PPI,4,2               ## @GIC_LAST_PPI
	.comm	_INTR_ISRCF_PPI,4,2             ## @INTR_ISRCF_PPI
L_.str.1:                               ## @.str.1
	.asciz	"%s,p%u"

	.comm	_GIC_FIRST_PPI,8,3              ## @GIC_FIRST_PPI
L_.str.2:                               ## @.str.2
	.asciz	"%s,s%u"

	.comm	_GIC_FIRST_SPI,8,3              ## @GIC_FIRST_SPI
	.no_dead_strip	_arm_gic_register_isrcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_gic_register_isrcs
_arm_gic_register_isrcs:                ; @arm_gic_register_isrcs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	lsl	w0, w1, #4
Lloh0:
	adrp	x9, _M_DEVBUF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M_DEVBUF@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w0, [x20, #16]
	bl	_device_get_nameunit
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, x0
	mov	x28, #0
Lloh9:
	adrp	x27, _INTR_POLARITY_CONFORM@GOTPAGE
Lloh10:
	ldr	x27, [x27, _INTR_POLARITY_CONFORM@GOTPAGEOFF]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x23, x8, #12
Lloh11:
	adrp	x24, _INTR_TRIGGER_CONFORM@GOTPAGE
Lloh12:
	ldr	x24, [x24, _INTR_TRIGGER_CONFORM@GOTPAGEOFF]
	mov	w21, w19
Lloh13:
	adrp	x25, _GIC_LAST_SGI@GOTPAGE
Lloh14:
	ldr	x25, [x25, _GIC_LAST_SGI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	w28, [x23, #-12]
	ldr	w8, [x27]
	str	w8, [x23]
	ldr	w8, [x24]
	stur	w8, [x23, #-4]
	sub	x0, x23, #8
	ldrsw	x8, [x25]
	cmp	x28, x8
	b.le	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _GIC_LAST_PPI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GIC_LAST_PPI@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	ldr	w1, [x20, #16]
	cmp	x28, x8
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x8, _GIC_FIRST_SPI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GIC_FIRST_SPI@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sub	x5, x28, x8
	mov	w2, #0
Lloh21:
	adrp	x3, l_.str.2@PAGE
Lloh22:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20, #16]
Lloh23:
	adrp	x8, _INTR_ISRCF_IPI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _INTR_ISRCF_IPI@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _GIC_FIRST_SGI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GIC_FIRST_SGI@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	sub	x5, x28, x8
Lloh29:
	adrp	x3, l_.str@PAGE
Lloh30:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh31:
	adrp	x8, _INTR_ISRCF_PPI@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INTR_ISRCF_PPI@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _GIC_FIRST_PPI@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GIC_FIRST_PPI@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	sub	x5, x28, x8
Lloh37:
	adrp	x3, l_.str.1@PAGE
Lloh38:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x4, x22
	bl	_intr_isrc_register
	mov	x26, x0
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x28, x28, #1
	add	x23, x23, #16
	cmp	x21, x28
	b.ne	LBB0_2
LBB0_9:
	mov	w26, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x20, #8]
	str	w19, [x20]
	b	LBB0_11
LBB0_10:
Lloh39:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_free
LBB0_11:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_INTR_POLARITY_CONFORM,4,2      ; @INTR_POLARITY_CONFORM
	.comm	_INTR_TRIGGER_CONFORM,4,2       ; @INTR_TRIGGER_CONFORM
	.comm	_GIC_LAST_SGI,4,2               ; @GIC_LAST_SGI
	.comm	_INTR_ISRCF_IPI,4,2             ; @INTR_ISRCF_IPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s,i%u"

	.comm	_GIC_FIRST_SGI,8,3              ; @GIC_FIRST_SGI
	.comm	_GIC_LAST_PPI,4,2               ; @GIC_LAST_PPI
	.comm	_INTR_ISRCF_PPI,4,2             ; @INTR_ISRCF_PPI
l_.str.1:                               ; @.str.1
	.asciz	"%s,p%u"

	.comm	_GIC_FIRST_PPI,8,3              ; @GIC_FIRST_PPI
l_.str.2:                               ; @.str.2
	.asciz	"%s,s%u"

	.comm	_GIC_FIRST_SPI,8,3              ; @GIC_FIRST_SPI
	.no_dead_strip	_arm_gic_register_isrcs
.subsections_via_symbols
