	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_irq_init
_ab8500_irq_init:                       ## @ab8500_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_is_ab8540
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AB8540_NR_IRQS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	callq	_is_ab9540
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AB9540_NR_IRQS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_is_ab8505
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_AB8500_NR_IRQS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_AB8505_NR_IRQS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_ab8500_irq_ops@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_irq_domain_add_simple
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AB8540_NR_IRQS,4,2             ## @AB8540_NR_IRQS
	.comm	_AB9540_NR_IRQS,4,2             ## @AB9540_NR_IRQS
	.comm	_AB8505_NR_IRQS,4,2             ## @AB8505_NR_IRQS
	.comm	_AB8500_NR_IRQS,4,2             ## @AB8500_NR_IRQS
	.comm	_ab8500_irq_ops,4,2             ## @ab8500_irq_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create irqdomain\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ab8500_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_irq_init
_ab8500_irq_init:                       ; @ab8500_irq_init
	.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
	bl	_is_ab8540
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AB8540_NR_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AB8540_NR_IRQS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_is_ab9540
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _AB9540_NR_IRQS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AB9540_NR_IRQS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_is_ab8505
Lloh4:
	adrp	x8, _AB8505_NR_IRQS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AB8505_NR_IRQS@GOTPAGEOFF]
Lloh6:
	adrp	x9, _AB8500_NR_IRQS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AB8500_NR_IRQS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_5:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh8:
	adrp	x3, _ab8500_irq_ops@GOTPAGE
Lloh9:
	ldr	x3, [x3, _ab8500_irq_ops@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, x19
	bl	_irq_domain_add_simple
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AB8540_NR_IRQS,4,2             ; @AB8540_NR_IRQS
	.comm	_AB9540_NR_IRQS,4,2             ; @AB9540_NR_IRQS
	.comm	_AB8505_NR_IRQS,4,2             ; @AB8505_NR_IRQS
	.comm	_AB8500_NR_IRQS,4,2             ; @AB8500_NR_IRQS
	.comm	_ab8500_irq_ops,4,2             ; @ab8500_irq_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create irqdomain\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ab8500_irq_init
.subsections_via_symbols
