	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cafe_irq
_cafe_irq:                              ## @cafe_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	%rsi, %r14
	leaq	16(%rsi), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_REG_IRQSTAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mcam_reg_read
	movl	%eax, %r15d
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mccic_irq
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_TWSIIRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r15d, %edx
	je	LBB0_5
## %bb.4:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mcam_reg_write
	movq	%r14, %rdi
	callq	_wake_up
	movl	$1, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_IRQSTAT,4,2                ## @REG_IRQSTAT
	.comm	_TWSIIRQS,4,2                   ## @TWSIIRQS
	.no_dead_strip	_cafe_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cafe_irq
_cafe_irq:                              ; @cafe_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	add	x19, x1, #16
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x23, _REG_IRQSTAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_IRQSTAT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mcam_reg_read
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_mccic_irq
	cmp	x0, #0
	cset	w22, ne
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh2:
	adrp	x8, _TWSIIRQS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TWSIIRQS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	tst	w2, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mcam_reg_write
	mov	x0, x20
	bl	_wake_up
	mov	w22, #1
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_IRQSTAT,4,2                ; @REG_IRQSTAT
	.comm	_TWSIIRQS,4,2                   ; @TWSIIRQS
	.no_dead_strip	_cafe_irq
.subsections_via_symbols
