	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function powerpc_map_irq
_powerpc_map_irq:                       ## @powerpc_map_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_npics@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.5:
	movq	_piclist@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rsi
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdx
	addq	$32, %rcx
	cmpq	%rdx, %r8
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx), %rax
	cmpq	%rax, %rsi
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	(%rcx), %rax
	addq	8(%rcx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_8
## %bb.2:
	cmpl	%r8d, %edx
	jne	LBB0_3
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%edx, %edx
                                        ## implicit-def: $rcx
	cmpl	%r8d, %edx
	je	LBB0_9
LBB0_3:
	movq	(%rdi), %rax
	subq	16(%rcx), %rax
	movq	%rax, 8(%rdi)
	movq	24(%rcx), %rcx
	movq	%rcx, 16(%rdi)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
LBB0_10:
	popq	%rbp
	retq
LBB0_4:
	movq	_root_pic@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_npics,4,2                      ## @npics
	.comm	_piclist,8,3                    ## @piclist
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_root_pic,8,3                   ## @root_pic
	.no_dead_strip	_powerpc_map_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function powerpc_map_irq
_powerpc_map_irq:                       ; @powerpc_map_irq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _npics@GOTPAGE
Lloh1:
	ldr	x8, [x8, _npics@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x10, #0
Lloh3:
	adrp	x9, _piclist@GOTPAGE
Lloh4:
	ldr	x9, [x9, _piclist@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x11, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x9, x9, #32
	cmp	x8, x10
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, #16]
	cmp	x11, x12
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x13, x14, [x9]
	add	x12, x13, x12
	add	x12, x12, x14
	cmp	x11, x12
	b.ge	LBB0_2
; %bb.5:
	cmp	w10, w8
	b.ne	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_7:
	mov	w10, #0
                                        ; implicit-def: $x9
	cmp	w10, w8
	b.eq	LBB0_6
LBB0_8:
	ldr	x8, [x0]
	ldp	x10, x9, [x9, #16]
	sub	x8, x8, x10
	stp	x8, x9, [x0, #8]
	mov	w8, #0
	cbz	x9, LBB0_10
LBB0_9:
	mov	x0, x8
	ret
LBB0_10:
Lloh9:
	adrp	x9, _root_pic@GOTPAGE
Lloh10:
	ldr	x9, [x9, _root_pic@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x0, #16]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_npics,4,2                      ; @npics
	.comm	_piclist,8,3                    ; @piclist
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_root_pic,8,3                   ; @root_pic
	.no_dead_strip	_powerpc_map_irq
.subsections_via_symbols
