	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_init_managed_irq
_zpa2326_init_managed_irq:              ## @zpa2326_init_managed_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%ecx, (%rdx)
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	addq	$4, %rdx
	movq	%rdx, %rdi
	callq	_init_completion
	movq	_zpa2326_handle_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_zpa2326_handle_threaded_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no interrupt found, running in polling mode"

	.comm	_zpa2326_handle_irq,4,2         ## @zpa2326_handle_irq
	.comm	_zpa2326_handle_threaded_irq,4,2 ## @zpa2326_handle_threaded_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"failed to request interrupt %d (%d)"

L_.str.2:                               ## @.str.2
	.asciz	"using interrupt %d"

	.no_dead_strip	_zpa2326_init_managed_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_init_managed_irq
_zpa2326_init_managed_irq:              ; @zpa2326_init_managed_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	w3, [x2]
	cmp	w3, #0
	b.le	LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x21, x1
	add	x0, x2, #4
	bl	_init_completion
Lloh0:
	adrp	x8, _zpa2326_handle_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zpa2326_handle_irq@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _zpa2326_handle_threaded_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zpa2326_handle_threaded_irq@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no interrupt found, running in polling mode"

	.comm	_zpa2326_handle_irq,4,2         ; @zpa2326_handle_irq
	.comm	_zpa2326_handle_threaded_irq,4,2 ; @zpa2326_handle_threaded_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"failed to request interrupt %d (%d)"

l_.str.2:                               ; @.str.2
	.asciz	"using interrupt %d"

	.no_dead_strip	_zpa2326_init_managed_irq
.subsections_via_symbols
