	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pic_get_irq
_pic_get_irq:                           ## @pic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_SPR_PICSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movl	%ebx, %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	bsfl	%eax, %eax
	addl	%ebx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_NO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPR_PICSR,4,2                  ## @SPR_PICSR
	.comm	_NO_IRQ,4,2                     ## @NO_IRQ
	.no_dead_strip	_pic_get_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pic_get_irq
_pic_get_irq:                           ; @pic_get_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SPR_PICSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPR_PICSR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_mfspr
	asr	w8, w0, w19
	rbit	w9, w8
	clz	w9, w9
	add	w9, w9, w19
Lloh3:
	adrp	x10, _NO_IRQ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NO_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w0, w10, w9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPR_PICSR,4,2                  ; @SPR_PICSR
	.comm	_NO_IRQ,4,2                     ; @NO_IRQ
	.no_dead_strip	_pic_get_irq
.subsections_via_symbols
