	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2_ctx_config
_csi2_ctx_config:                       ## @csi2_ctx_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	8(%rbx), %r14d
	callq	_CAL_CSI2_CTX0
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_reg_read
	movl	%eax, -28(%rbp)
	movl	(%rbx), %esi
	movq	_CAL_CSI2_CTX_CPORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	callq	_set_field
	movq	_CAL_CSI2_CTX_DT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_set_field
	movl	4(%rbx), %esi
	movq	_CAL_CSI2_CTX_VC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_set_field
	movq	_CAL_CSI2_CTX_LINES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_field
	movq	_CAL_CSI2_CTX_ATT_PIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAL_CSI2_CTX_ATT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_set_field
	movq	_CAL_CSI2_CTX_PACK_MODE_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAL_CSI2_CTX_PACK_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_set_field
	movl	(%rbx), %edi
	movl	8(%rbx), %r14d
	callq	_CAL_CSI2_CTX0
	movl	-28(%rbp), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_reg_write
	movl	(%rbx), %r14d
	movl	8(%rbx), %r15d
	movl	%r14d, %edi
	callq	_CAL_CSI2_CTX0
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_reg_read
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ctx_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAL_CSI2_CTX_CPORT_MASK,4,2    ## @CAL_CSI2_CTX_CPORT_MASK
	.comm	_CAL_CSI2_CTX_DT_MASK,4,2       ## @CAL_CSI2_CTX_DT_MASK
	.comm	_CAL_CSI2_CTX_VC_MASK,4,2       ## @CAL_CSI2_CTX_VC_MASK
	.comm	_CAL_CSI2_CTX_LINES_MASK,4,2    ## @CAL_CSI2_CTX_LINES_MASK
	.comm	_CAL_CSI2_CTX_ATT_PIX,4,2       ## @CAL_CSI2_CTX_ATT_PIX
	.comm	_CAL_CSI2_CTX_ATT_MASK,4,2      ## @CAL_CSI2_CTX_ATT_MASK
	.comm	_CAL_CSI2_CTX_PACK_MODE_LINE,4,2 ## @CAL_CSI2_CTX_PACK_MODE_LINE
	.comm	_CAL_CSI2_CTX_PACK_MODE_MASK,4,2 ## @CAL_CSI2_CTX_PACK_MODE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CAL_CSI2_CTX0(%d) = 0x%08x\n"

	.no_dead_strip	_csi2_ctx_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2_ctx_config
_csi2_ctx_config:                       ; @csi2_ctx_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w20, [x0, #8]
	ldr	w0, [x0]
	bl	_CAL_CSI2_CTX0
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	str	w0, [sp, #12]
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _CAL_CSI2_CTX_CPORT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAL_CSI2_CTX_CPORT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh3:
	adrp	x8, _CAL_CSI2_CTX_DT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAL_CSI2_CTX_DT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #1
	bl	_set_field
	ldr	w1, [x19, #4]
Lloh6:
	adrp	x8, _CAL_CSI2_CTX_VC_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAL_CSI2_CTX_VC_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh9:
	adrp	x8, _CAL_CSI2_CTX_LINES_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAL_CSI2_CTX_LINES_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #0
	bl	_set_field
Lloh12:
	adrp	x8, _CAL_CSI2_CTX_ATT_PIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAL_CSI2_CTX_ATT_PIX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _CAL_CSI2_CTX_ATT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAL_CSI2_CTX_ATT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh18:
	adrp	x8, _CAL_CSI2_CTX_PACK_MODE_LINE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAL_CSI2_CTX_PACK_MODE_LINE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _CAL_CSI2_CTX_PACK_MODE_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAL_CSI2_CTX_PACK_MODE_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
	ldr	w20, [x19, #8]
	ldr	w0, [x19]
	bl	_CAL_CSI2_CTX0
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_reg_write
	ldr	w20, [x19]
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_CAL_CSI2_CTX0
	mov	x1, x0
	mov	x0, x21
	bl	_reg_read
	mov	x4, x0
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	mov	x3, x20
	bl	_ctx_dbg
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAL_CSI2_CTX_CPORT_MASK,4,2    ; @CAL_CSI2_CTX_CPORT_MASK
	.comm	_CAL_CSI2_CTX_DT_MASK,4,2       ; @CAL_CSI2_CTX_DT_MASK
	.comm	_CAL_CSI2_CTX_VC_MASK,4,2       ; @CAL_CSI2_CTX_VC_MASK
	.comm	_CAL_CSI2_CTX_LINES_MASK,4,2    ; @CAL_CSI2_CTX_LINES_MASK
	.comm	_CAL_CSI2_CTX_ATT_PIX,4,2       ; @CAL_CSI2_CTX_ATT_PIX
	.comm	_CAL_CSI2_CTX_ATT_MASK,4,2      ; @CAL_CSI2_CTX_ATT_MASK
	.comm	_CAL_CSI2_CTX_PACK_MODE_LINE,4,2 ; @CAL_CSI2_CTX_PACK_MODE_LINE
	.comm	_CAL_CSI2_CTX_PACK_MODE_MASK,4,2 ; @CAL_CSI2_CTX_PACK_MODE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CAL_CSI2_CTX0(%d) = 0x%08x\n"

	.no_dead_strip	_csi2_ctx_config
.subsections_via_symbols
