	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gic_bind
_gic_bind:                              ## @gic_bind
	.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
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_min
	movq	%rax, %r12
	movq	_MAXCPU@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jae	LBB0_4
## %bb.1:
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_2
LBB0_4:
	testq	%r12, %r12
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.7:
	xorl	%r14d, %r14d
	movq	_arm_gic_map@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rax
	orq	(%rax,%r13,8), %r14
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_5:
	xorl	%r14d, %r14d
LBB0_11:
	xorl	%edi, %edi
	callq	_GICD_ITARGETSR
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_gic_d_write_1
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.comm	_MAXCPU,8,3                     ## @MAXCPU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_arm_gic_map,8,3                ## @arm_gic_map
	.no_dead_strip	_gic_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gic_bind
_gic_bind:                              ; @gic_bind
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _mp_ncpus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mp_ncpus@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #8
	bl	_min
	mov	x22, x0
Lloh3:
	adrp	x24, _MAXCPU@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAXCPU@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.hs	LBB0_4
; %bb.1:
	mov	x23, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_CPU_ISSET
	cbnz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_4:
	mov	x23, #0
	cbz	x22, LBB0_9
; %bb.5:
	mov	x24, #0
Lloh5:
	adrp	x25, _arm_gic_map@GOTPAGE
Lloh6:
	ldr	x25, [x25, _arm_gic_map@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	cmp	x22, x24
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_CPU_ISSET
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8, x24, lsl #3]
	orr	x23, x8, x23
	b	LBB0_6
LBB0_9:
	mov	w0, #0
	bl	_GICD_ITARGETSR
	add	x1, x0, x20
	mov	x0, x19
	mov	x2, x23
	bl	_gic_d_write_1
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_MAXCPU,8,3                     ; @MAXCPU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_arm_gic_map,8,3                ; @arm_gic_map
	.no_dead_strip	_gic_bind
.subsections_via_symbols
