	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_powerpc_get_irq                ## -- Begin function powerpc_get_irq
	.p2align	4, 0x90
_powerpc_get_irq:                       ## @powerpc_get_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_npics@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_piclist@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	movq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, (%rdx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	$32, %rdx
	cmpq	%rbx, %r12
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rdx
	shlq	$5, %rdx
	movq	$0, 24(%rcx,%rdx)
	movq	(%r15), %rcx
	movq	%r13, (%rcx,%rdx)
	movabsq	$17179869308, %rsi              ## imm = 0x40000007C
	movq	%rsi, 8(%rcx,%rdx)
	movq	_nirqs@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%rdi, 16(%rcx,%rdx)
	addq	$33554432, (%rsi)               ## imm = 0x2000000
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	movq	_MAX_PICS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	xorl	%edi, %edi
	cmpl	%esi, %ecx
	setl	%dil
	callq	_KASSERT
	movq	%r12, %rbx
LBB0_7:
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	(%r15), %rax
	shlq	$5, %rbx
	addq	16(%rax,%rbx), %r14
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intr_table_lock,4,2            ## @intr_table_lock
	.comm	_npics,4,2                      ## @npics
	.comm	_piclist,8,3                    ## @piclist
	.comm	_nirqs,8,3                      ## @nirqs
	.comm	_MAX_PICS,4,2                   ## @MAX_PICS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function powerpc_get_irq
lCPI0_0:
	.long	124                             ; 0x7c
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_powerpc_get_irq
	.p2align	2
_powerpc_get_irq:                       ; @powerpc_get_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, _intr_table_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _intr_table_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x8, _npics@GOTPAGE
Lloh3:
	ldr	x8, [x8, _npics@GOTPAGEOFF]
	ldr	w22, [x8]
Lloh4:
	adrp	x21, _piclist@GOTPAGE
Lloh5:
	ldr	x21, [x21, _piclist@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	mov	x10, x9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x20
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x10, x10, #32
	cmp	x22, x23
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
	lsl	x10, x22, #5
	add	x9, x9, x10
	str	xzr, [x9, #24]
	ldr	x9, [x21]
	add	x9, x9, x10
	str	x20, [x9]
Lloh6:
	adrp	x10, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x9, #8]
Lloh8:
	adrp	x10, _nirqs@GOTPAGE
Lloh9:
	ldr	x10, [x10, _nirqs@GOTPAGEOFF]
	ldr	x11, [x10]
	str	x11, [x9, #16]
	ldr	x9, [x10]
	mov	w11, #33554432
	add	x9, x9, x11
	str	x9, [x10]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh10:
	adrp	x8, _MAX_PICS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_PICS@GOTPAGEOFF]
Lloh12:
	ldrsw	x1, [x8]
	cmp	w9, w1
	cset	w0, lt
	bl	_KASSERT
	mov	x23, x22
LBB0_7:
Lloh13:
	adrp	x0, _intr_table_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _intr_table_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	ldr	x8, [x21]
	add	x8, x8, x23, lsl #5
	ldr	x8, [x8, #16]
	add	x19, x8, x19
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_intr_table_lock,4,2            ; @intr_table_lock
	.comm	_npics,4,2                      ; @npics
	.comm	_piclist,8,3                    ; @piclist
	.comm	_nirqs,8,3                      ; @nirqs
	.comm	_MAX_PICS,4,2                   ; @MAX_PICS
.subsections_via_symbols
