	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_irq
_init_irq:                              ## @init_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rdi), %edi
	movl	4(%r12), %ecx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.20:
	movl	%eax, %ebx
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_3:
	leaq	12(%r12), %r14
	leaq	16(%r12), %r15
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_reset_inf
	movq	%r15, %rdi
	callq	*16(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_info
LBB0_17:
	movl	(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movq	_debug@GOTPCREL(%rip), %rcx
	movq	_DEBUG_HW@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
LBB0_7:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	jne	LBB0_19
## %bb.8:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_reset_inf
	movq	%r15, %rdi
	callq	*16(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movl	(%r13), %eax
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
LBB0_11:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	jne	LBB0_19
## %bb.12:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$2, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_reset_inf
	movq	%r15, %rdi
	callq	*16(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.13:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movl	(%r13), %eax
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
LBB0_15:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	jne	LBB0_19
## %bb.16:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$3, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: couldn't get interrupt %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: ISAC init failed with %d\n"

	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_HW,4,2                   ## @DEBUG_HW
L_.str.2:                               ## @.str.2
	.asciz	"%s: IRQ %d count %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: IRQ(%d) got no requests during init %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_init_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_irq
_init_irq:                              ; @init_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
	ldr	x8, [x0, #24]
	ldr	w1, [x8]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w0, [x0]
	ldr	w3, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldp	w2, w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_inf
	mov	x21, x19
	ldr	x8, [x21, #16]!
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w1, [x19, #4]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
LBB0_6:
	bl	_pr_info
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
Lloh11:
	adrp	x23, _debug@GOTPAGE
Lloh12:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh13:
	adrp	x24, _DEBUG_HW@GOTPAGE
Lloh14:
	ldr	x24, [x24, _DEBUG_HW@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_11:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_13
LBB0_12:
	mov	w20, #0
	b	LBB0_8
LBB0_13:
	ldp	w2, w1, [x19]
	mov	w8, #1
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_inf
	ldr	x8, [x19, #16]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.14:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_16:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_12
; %bb.17:
	ldp	w2, w1, [x19]
	mov	w8, #2
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_inf
	ldr	x8, [x19, #16]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.18:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_20:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_12
; %bb.21:
	ldp	w2, w1, [x19]
	mov	w8, #3
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: couldn't get interrupt %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: ISAC init failed with %d\n"

	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_HW,4,2                   ; @DEBUG_HW
l_.str.2:                               ; @.str.2
	.asciz	"%s: IRQ %d count %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: IRQ(%d) got no requests during init %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_init_irq
.subsections_via_symbols
