	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function db8500_irq_init
_db8500_irq_init:                       ## @db8500_irq_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NUM_PRCMU_WAKEUPS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_db8500_irq_ops@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_irq_domain_add_simple
	movq	_db8500_irq_domain@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_irq_create_mapping
	cmpl	$2, (%r15)
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_irq_create_mapping
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_PRCMU_WAKEUPS,4,2          ## @NUM_PRCMU_WAKEUPS
	.comm	_db8500_irq_ops,4,2             ## @db8500_irq_ops
	.comm	_db8500_irq_domain,4,2          ## @db8500_irq_domain
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create irqdomain\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_db8500_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function db8500_irq_init
_db8500_irq_init:                       ; @db8500_irq_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _NUM_PRCMU_WAKEUPS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUM_PRCMU_WAKEUPS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x3, _db8500_irq_ops@GOTPAGE
Lloh3:
	ldr	x3, [x3, _db8500_irq_ops@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, #0
	bl	_irq_domain_add_simple
Lloh4:
	adrp	x21, _db8500_irq_domain@GOTPAGE
Lloh5:
	ldr	x21, [x21, _db8500_irq_domain@GOTPAGEOFF]
	str	w0, [x21]
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w1, #0
	bl	_irq_create_mapping
	mov	w0, #0
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.3:
	mov	w19, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_irq_create_mapping
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_PRCMU_WAKEUPS,4,2          ; @NUM_PRCMU_WAKEUPS
	.comm	_db8500_irq_ops,4,2             ; @db8500_irq_ops
	.comm	_db8500_irq_domain,4,2          ; @db8500_irq_domain
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create irqdomain\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_db8500_irq_init
.subsections_via_symbols
