	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_powerpc_setup_intr             ## -- Begin function powerpc_setup_intr
	.p2align	4, 0x90
_powerpc_setup_intr:                    ## @powerpc_setup_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	%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	%r9d, %r14d
	movq	%r8, %r13
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_intr_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rax), %rax
	movq	%rax, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	16(%rbp), %r12
	movl	%r14d, %edi
	callq	_intr_priority
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	pushq	%r12
	pushq	%r14
	callq	_intr_event_add_handler
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_20
## %bb.6:
	movl	24(%rbp), %r14d
	movl	%r14d, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	44(%r15), %rbx
	movq	%rbx, %rdi
	callq	_CPU_ZERO
	movq	_cpuset_domain@GOTPCREL(%rip), %rax
	movslq	%r14d, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_CPU_COPY
LBB0_8:
	movq	_intr_table_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	56(%r15), %rax
	movl	(%rax), %edi
	movl	52(%r15), %esi
	callq	_intrcnt_setname
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	_cold@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_3:
	leaq	56(%r15), %r13
	movq	_powerpc_intr_pre_ithread@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_powerpc_intr_post_ithread@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_powerpc_intr_eoi@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_powerpc_assign_intr_cpu@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	leaq	L_.str(%rip), %r11
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	pushq	%r12
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_intr_event_create
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:
	movq	(%r13), %r13
	jmp	LBB0_5
LBB0_9:
	movq	%r15, %rdi
	callq	_powerpc_map_irq
	testl	%eax, %eax
	je	LBB0_10
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%r15), %rdx
	movq	_INTR_TRIGGER_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
## %bb.11:
	leaq	8(%r15), %rcx
	movq	16(%r15), %rdi
	movl	40(%r15), %esi
	movl	48(%r15), %edx
	leaq	24(%r15), %r8
	callq	_PIC_TRANSLATE_CODE
	movq	8(%r15), %rdx
LBB0_12:
	movq	_INTR_TRIGGER_CONFORM@GOTPCREL(%rip), %rax
	movq	24(%r15), %rcx
	cmpq	(%rax), %rdx
	jne	LBB0_14
## %bb.13:
	movq	_INTR_POLARITY_CONFORM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_15
LBB0_14:
	movq	16(%r15), %rdi
	movl	40(%r15), %esi
	callq	_PIC_CONFIG
LBB0_15:
	movq	16(%r15), %rdi
	movq	_root_pic@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_17
## %bb.16:
	movl	40(%r15), %esi
	movl	44(%r15), %edx
	leaq	32(%r15), %rcx
	callq	_PIC_BIND
LBB0_17:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_19
## %bb.18:
	movq	16(%r15), %rdi
	movl	40(%r15), %esi
	movl	36(%r15), %edx
	addq	$32, %r15
	movq	%r15, %rcx
	callq	_PIC_ENABLE
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_powerpc_intr_pre_ithread,4,2   ## @powerpc_intr_pre_ithread
	.comm	_powerpc_intr_post_ithread,4,2  ## @powerpc_intr_post_ithread
	.comm	_powerpc_intr_eoi,4,2           ## @powerpc_intr_eoi
	.comm	_powerpc_assign_intr_cpu,4,2    ## @powerpc_assign_intr_cpu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq%u:"

L_.str.1:                               ## @.str.1
	.asciz	"IPI"

	.comm	_cpuset_domain,8,3              ## @cpuset_domain
	.comm	_intr_table_lock,4,2            ## @intr_table_lock
	.comm	_cold,4,2                       ## @cold
	.comm	_INTR_TRIGGER_INVALID,8,3       ## @INTR_TRIGGER_INVALID
	.comm	_INTR_TRIGGER_CONFORM,8,3       ## @INTR_TRIGGER_CONFORM
	.comm	_INTR_POLARITY_CONFORM,8,3      ## @INTR_POLARITY_CONFORM
	.comm	_root_pic,8,3                   ## @root_pic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_powerpc_setup_intr             ; -- Begin function powerpc_setup_intr
	.p2align	2
_powerpc_setup_intr:                    ; @powerpc_setup_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x28, x1
	mov	x21, x0
	mov	x0, x1
	bl	_intr_lookup
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	mov	x27, x0
	ldr	x8, [x27, #56]!
	mov	x20, x8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_8
LBB0_2:
	mov	x0, x23
	bl	_intr_priority
	mov	x5, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x6, x23
	mov	x7, x22
	bl	_intr_event_add_handler
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	str	w22, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.4:
	add	x20, x19, #44
	mov	x0, x20
	bl	_CPU_ZERO
Lloh2:
	adrp	x8, _cpuset_domain@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cpuset_domain@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x0, x8, w22, sxtw #2
	mov	x1, x20
	bl	_CPU_COPY
LBB0_5:
Lloh5:
	adrp	x20, _intr_table_lock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _intr_table_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
	ldr	x8, [x19, #56]
	ldr	w0, [x8]
	ldr	w1, [x19, #52]
	bl	_intrcnt_setname
	mov	x0, x20
	bl	_mtx_unlock
Lloh7:
	adrp	x8, _cold@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cold@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_8:
Lloh13:
	adrp	x8, _powerpc_intr_pre_ithread@GOTPAGE
Lloh14:
	ldr	x8, [x8, _powerpc_intr_pre_ithread@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x8, _powerpc_intr_post_ithread@GOTPAGE
Lloh17:
	ldr	x8, [x8, _powerpc_intr_post_ithread@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
Lloh19:
	adrp	x8, _powerpc_intr_eoi@GOTPAGE
Lloh20:
	ldr	x8, [x8, _powerpc_intr_eoi@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
Lloh22:
	adrp	x8, _powerpc_assign_intr_cpu@GOTPAGE
Lloh23:
	ldr	x8, [x8, _powerpc_assign_intr_cpu@GOTPAGEOFF]
Lloh24:
	ldr	w7, [x8]
	str	w28, [sp, #8]
Lloh25:
	adrp	x8, l_.str@PAGE
Lloh26:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x0, x27
	mov	x1, x19
	mov	w2, #0
	mov	x3, x28
	bl	_intr_event_create
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	x20, [x27]
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	bl	_powerpc_map_irq
	cbz	w0, LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	mov	x3, x19
	ldr	x2, [x3, #8]!
Lloh27:
	adrp	x8, _INTR_TRIGGER_INVALID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INTR_TRIGGER_INVALID@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #40]
	add	x4, x19, #24
	ldr	w2, [x19, #48]
	bl	_PIC_TRANSLATE_CODE
	ldr	x2, [x19, #8]
LBB0_14:
Lloh30:
	adrp	x8, _INTR_TRIGGER_CONFORM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INTR_TRIGGER_CONFORM@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x3, [x19, #24]
	cmp	x2, x8
	b.ne	LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _INTR_POLARITY_CONFORM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INTR_POLARITY_CONFORM@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x3, x8
	b.eq	LBB0_17
LBB0_16:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #40]
	bl	_PIC_CONFIG
LBB0_17:
	ldr	x0, [x19, #16]
Lloh36:
	adrp	x8, _root_pic@GOTPAGE
Lloh37:
	ldr	x8, [x8, _root_pic@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	w1, w2, [x19, #40]
	add	x3, x19, #32
	bl	_PIC_BIND
LBB0_19:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_6
; %bb.20:
	ldr	x0, [x19, #16]
	add	x3, x19, #32
	ldp	w2, w1, [x19, #36]
	bl	_PIC_ENABLE
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_powerpc_intr_pre_ithread,4,2   ; @powerpc_intr_pre_ithread
	.comm	_powerpc_intr_post_ithread,4,2  ; @powerpc_intr_post_ithread
	.comm	_powerpc_intr_eoi,4,2           ; @powerpc_intr_eoi
	.comm	_powerpc_assign_intr_cpu,4,2    ; @powerpc_assign_intr_cpu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq%u:"

l_.str.1:                               ; @.str.1
	.asciz	"IPI"

	.comm	_cpuset_domain,8,3              ; @cpuset_domain
	.comm	_intr_table_lock,4,2            ; @intr_table_lock
	.comm	_cold,4,2                       ; @cold
	.comm	_INTR_TRIGGER_INVALID,8,3       ; @INTR_TRIGGER_INVALID
	.comm	_INTR_TRIGGER_CONFORM,8,3       ; @INTR_TRIGGER_CONFORM
	.comm	_INTR_POLARITY_CONFORM,8,3      ; @INTR_POLARITY_CONFORM
	.comm	_root_pic,8,3                   ; @root_pic
.subsections_via_symbols
