	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2_isr_ctx
_csi2_isr_ctx:                          ## @csi2_isr_ctx
	.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	%rdi, %r12
	movq	16(%rdi), %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r14d
	movl	12(%rdi), %r13d
	movl	%r14d, %edi
	callq	_ISPCSI2_CTX_IRQSTATUS
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_isp_reg_readl
	movl	%eax, %ebx
	movl	12(%r12), %r13d
	movl	%r14d, %edi
	callq	_ISPCSI2_CTX_IRQSTATUS
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_isp_reg_writel
	movq	_ISPCSI2_CTX_IRQSTATUS_FE_IRQ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	decq	%rax
	movq	%rax, (%r12)
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_csi2_ctx_map_format
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 4(%rdx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_csi2_ctx_config
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_csi2_ctx_enable                ## TAILCALL
LBB0_4:
	movq	_CSI2_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_csi2_isr_buffer                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPCSI2_CTX_IRQSTATUS_FE_IRQ,4,2 ## @ISPCSI2_CTX_IRQSTATUS_FE_IRQ
	.comm	_CSI2_OUTPUT_MEMORY,4,2         ## @CSI2_OUTPUT_MEMORY
	.no_dead_strip	_csi2_isr_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2_isr_ctx
_csi2_isr_ctx:                          ; @csi2_isr_ctx
	.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	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	w20, [x1]
	ldr	w23, [x0, #12]
	mov	x0, x20
	bl	_ISPCSI2_CTX_IRQSTATUS
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_isp_reg_readl
	mov	x23, x0
	ldr	w24, [x19, #12]
	mov	x0, x20
	bl	_ISPCSI2_CTX_IRQSTATUS
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_isp_reg_writel
Lloh0:
	adrp	x8, _ISPCSI2_CTX_IRQSTATUS_FE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISPCSI2_CTX_IRQSTATUS_FE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_csi2_ctx_map_format
	str	w0, [x22, #4]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_csi2_ctx_config
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #1
	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	_csi2_ctx_enable
LBB0_4:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _CSI2_OUTPUT_MEMORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CSI2_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	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	_csi2_isr_buffer
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPCSI2_CTX_IRQSTATUS_FE_IRQ,4,2 ; @ISPCSI2_CTX_IRQSTATUS_FE_IRQ
	.comm	_CSI2_OUTPUT_MEMORY,4,2         ; @CSI2_OUTPUT_MEMORY
	.no_dead_strip	_csi2_isr_ctx
.subsections_via_symbols
