	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lp8788_irq_init                ## -- Begin function lp8788_irq_init
	.p2align	4, 0x90
_lp8788_irq_init:                       ## @lp8788_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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	%r15, 16(%rax)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_LP8788_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_lp8788_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rcx
	callq	_irq_domain_add_linear
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, 16(%r15)
	movq	%r12, %rdi
	callq	_mutex_init
	movq	_lp8788_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	movl	%r14d, (%r15)
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid irq number: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LP8788_INT_MAX,4,2             ## @LP8788_INT_MAX
	.comm	_lp8788_domain_ops,4,2          ## @lp8788_domain_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to add irq domain err\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_lp8788_irq_handler,4,2         ## @lp8788_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"lp8788-irq"

L_.str.3:                               ## @.str.3
	.asciz	"failed to create a thread for IRQ_N\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lp8788_irq_init                ; -- Begin function lp8788_irq_init
	.p2align	2
_lp8788_irq_init:                       ; @lp8788_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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	cmp	w1, #0
	b.le	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	str	x20, [x0, #16]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LP8788_INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8788_INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, _lp8788_domain_ops@GOTPAGE
Lloh7:
	ldr	x2, [x2, _lp8788_domain_ops@GOTPAGEOFF]
	mov	x3, x21
	bl	_irq_domain_add_linear
	str	x0, [x21, #8]
	cbz	x0, LBB0_7
; %bb.3:
	str	x0, [x20, #16]
	mov	x0, x21
	bl	_mutex_init
Lloh8:
	adrp	x8, _lp8788_irq_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lp8788_irq_handler@GOTPAGEOFF]
Lloh10:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh17:
	adrp	x4, l_.str.2@PAGE
Lloh18:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x0, [x20, #8]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_5:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
	mov	w21, #0
	b	LBB0_10
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x20, #8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	str	w19, [x20]
LBB0_10:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid irq number: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LP8788_INT_MAX,4,2             ; @LP8788_INT_MAX
	.comm	_lp8788_domain_ops,4,2          ; @lp8788_domain_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to add irq domain err\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_lp8788_irq_handler,4,2         ; @lp8788_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"lp8788-irq"

l_.str.3:                               ; @.str.3
	.asciz	"failed to create a thread for IRQ_N\n"

.subsections_via_symbols
