	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_init_ip
_lima_init_ip:                          ## @lima_init_ip
	.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	_lima_ip_desc@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%esi, %rbx
	movq	(%rdi), %rcx
	shlq	$5, %rbx
	movq	(%r12,%rbx), %rax
	movl	(%rax,%rcx,4), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	24(%rdi), %r13
	leaq	(%rbx,%r13), %r15
	movq	8(%r12,%rbx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, 24(%r13,%rbx)
	movl	%esi, (%r15)
	addq	16(%rdi), %rax
	movq	%rax, 16(%r13,%rbx)
	movq	24(%r12,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movl	8(%rdi), %edi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	%eax, 4(%r13,%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	*16(%r12,%rbx)
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	cmovel	%ecx, %eax
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_5:
	movl	$1, 8(%r13,%rbx)
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lima_ip_desc,8,3               ## @lima_ip_desc
	.no_dead_strip	_lima_init_ip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_init_ip
_lima_init_ip:                          ; @lima_init_ip
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _lima_ip_desc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lima_ip_desc@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	sbfiz	x8, x1, #5, #32
	add	x9, x20, x8
	ldr	x10, [x9]
	ldr	x11, [x0]
	lsl	x11, x11, #2
	ldr	w10, [x10, x11]
	tbnz	w10, #31, LBB0_6
; %bb.1:
	sxtw	x21, w1
	ldp	x12, x22, [x0, #16]
	add	x19, x22, x8
	ldr	x8, [x9, #8]
	ldr	w23, [x8, x11]
	lsl	x8, x21, #5
	add	x9, x22, x8
	str	w1, [x19]
	add	x10, x12, x10
	stp	x10, x0, [x9, #16]
	add	x8, x20, x8
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	w0, [x0, #8]
	bl	_platform_get_irq_byname
	tbnz	w0, #31, LBB0_5
; %bb.3:
	add	x8, x22, x21, lsl #5
	str	w0, [x8, #4]
LBB0_4:
	add	x8, x20, x21, lsl #5
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_7
LBB0_5:
	cmp	w23, #0
	csel	w0, wzr, w0, eq
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	add	x8, x22, x21, lsl #5
	mov	w9, #1
	str	w9, [x8, #8]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_lima_ip_desc,8,3               ; @lima_ip_desc
	.no_dead_strip	_lima_init_ip
.subsections_via_symbols
