	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_gic_bind_intr
_arm_gic_bind_intr:                     ## @arm_gic_bind_intr
	.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	%rsi, %rbx
	callq	_device_get_softc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_GIC_FIRST_SPI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_CPU_EMPTY
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_gic_irq_cpu@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_all_cpus@GOTPCREL(%rip), %rsi
	callq	_intr_irq_next_cpu
	movl	%eax, (%r15)
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_CPU_SETOF
LBB0_3:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gic_bind                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GIC_FIRST_SPI,8,3              ## @GIC_FIRST_SPI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gic_irq_cpu,4,2                ## @gic_irq_cpu
	.comm	_all_cpus,4,2                   ## @all_cpus
	.no_dead_strip	_arm_gic_bind_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_gic_bind_intr
_arm_gic_bind_intr:                     ; @arm_gic_bind_intr
	.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, x1
	bl	_device_get_softc
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _GIC_FIRST_SPI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GIC_FIRST_SPI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_CPU_EMPTY
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x21, _gic_irq_cpu@GOTPAGE
Lloh7:
	ldr	x21, [x21, _gic_irq_cpu@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, _all_cpus@GOTPAGE
Lloh9:
	ldr	x1, [x1, _all_cpus@GOTPAGEOFF]
	bl	_intr_irq_next_cpu
	str	w0, [x21]
	mov	x1, x19
	bl	_CPU_SETOF
LBB0_4:
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x19
	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
	b	_gic_bind
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GIC_FIRST_SPI,8,3              ; @GIC_FIRST_SPI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gic_irq_cpu,4,2                ; @gic_irq_cpu
	.comm	_all_cpus,4,2                   ; @all_cpus
	.no_dead_strip	_arm_gic_bind_intr
.subsections_via_symbols
