	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cal_wr_dma_config
_cal_wr_dma_config:                     ## @cal_wr_dma_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	%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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %r15d
	callq	_CAL_WR_DMA_CTRL
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_reg_read
	movl	%eax, -44(%rbp)
	movl	(%rbx), %esi
	movq	_CAL_WR_DMA_CTRL_CPORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	callq	_set_field
	movq	_CAL_WR_DMA_CTRL_DTAG_PIX_DAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAL_WR_DMA_CTRL_DTAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_set_field
	movq	_CAL_WR_DMA_CTRL_MODE_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAL_WR_DMA_CTRL_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_set_field
	movq	_CAL_WR_DMA_CTRL_PATTERN_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAL_WR_DMA_CTRL_PATTERN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_set_field
	movq	_CAL_GEN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAL_WR_DMA_CTRL_STALL_RD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_set_field
	movl	(%rbx), %edi
	movl	4(%rbx), %r12d
	callq	_CAL_WR_DMA_CTRL
	movl	-44(%rbp), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_reg_write
	movl	(%rbx), %r12d
	movl	4(%rbx), %r13d
	movl	%r12d, %edi
	callq	_CAL_WR_DMA_CTRL
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_reg_read
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ctx_dbg
	movl	(%rbx), %edi
	movl	4(%rbx), %r12d
	callq	_CAL_WR_DMA_OFST
	movl	%r14d, %edx
	shrl	$4, %edx
	movq	_CAL_WR_DMA_OFST_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_reg_write_field
	movl	(%rbx), %r12d
	movl	4(%rbx), %r13d
	movl	%r12d, %edi
	callq	_CAL_WR_DMA_OFST
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_reg_read
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ctx_dbg
	movl	(%rbx), %edi
	movl	4(%rbx), %r12d
	callq	_CAL_WR_DMA_XSIZE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_reg_read
	movl	%eax, -44(%rbp)
	movq	_CAL_WR_DMA_XSIZE_XSKIP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_set_field
	shrl	$3, %r14d
	movq	_CAL_WR_DMA_XSIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_set_field
	movl	(%rbx), %edi
	movl	4(%rbx), %r14d
	callq	_CAL_WR_DMA_XSIZE
	movl	-44(%rbp), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_reg_write
	movl	(%rbx), %r14d
	movl	4(%rbx), %r15d
	movl	%r14d, %edi
	callq	_CAL_WR_DMA_XSIZE
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_reg_read
	leaq	L_.str.2(%rip), %rdx
	movl	$3, %edi
	movq	%rbx, %rsi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ctx_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAL_WR_DMA_CTRL_CPORT_MASK,4,2 ## @CAL_WR_DMA_CTRL_CPORT_MASK
	.comm	_CAL_WR_DMA_CTRL_DTAG_PIX_DAT,4,2 ## @CAL_WR_DMA_CTRL_DTAG_PIX_DAT
	.comm	_CAL_WR_DMA_CTRL_DTAG_MASK,4,2  ## @CAL_WR_DMA_CTRL_DTAG_MASK
	.comm	_CAL_WR_DMA_CTRL_MODE_CONST,4,2 ## @CAL_WR_DMA_CTRL_MODE_CONST
	.comm	_CAL_WR_DMA_CTRL_MODE_MASK,4,2  ## @CAL_WR_DMA_CTRL_MODE_MASK
	.comm	_CAL_WR_DMA_CTRL_PATTERN_LINEAR,4,2 ## @CAL_WR_DMA_CTRL_PATTERN_LINEAR
	.comm	_CAL_WR_DMA_CTRL_PATTERN_MASK,4,2 ## @CAL_WR_DMA_CTRL_PATTERN_MASK
	.comm	_CAL_GEN_ENABLE,4,2             ## @CAL_GEN_ENABLE
	.comm	_CAL_WR_DMA_CTRL_STALL_RD_MASK,4,2 ## @CAL_WR_DMA_CTRL_STALL_RD_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CAL_WR_DMA_CTRL(%d) = 0x%08x\n"

	.comm	_CAL_WR_DMA_OFST_MASK,4,2       ## @CAL_WR_DMA_OFST_MASK
L_.str.1:                               ## @.str.1
	.asciz	"CAL_WR_DMA_OFST(%d) = 0x%08x\n"

	.comm	_CAL_WR_DMA_XSIZE_XSKIP_MASK,4,2 ## @CAL_WR_DMA_XSIZE_XSKIP_MASK
	.comm	_CAL_WR_DMA_XSIZE_MASK,4,2      ## @CAL_WR_DMA_XSIZE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"CAL_WR_DMA_XSIZE(%d) = 0x%08x\n"

	.no_dead_strip	_cal_wr_dma_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cal_wr_dma_config
_cal_wr_dma_config:                     ; @cal_wr_dma_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	x20, x1
	mov	x19, x0
	ldp	w0, w21, [x0]
	bl	_CAL_WR_DMA_CTRL
	mov	x1, x0
	mov	x0, x21
	bl	_reg_read
	str	w0, [sp, #12]
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _CAL_WR_DMA_CTRL_CPORT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_CPORT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh3:
	adrp	x8, _CAL_WR_DMA_CTRL_DTAG_PIX_DAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_DTAG_PIX_DAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CAL_WR_DMA_CTRL_DTAG_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_DTAG_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh9:
	adrp	x8, _CAL_WR_DMA_CTRL_MODE_CONST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_MODE_CONST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _CAL_WR_DMA_CTRL_MODE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_MODE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh15:
	adrp	x8, _CAL_WR_DMA_CTRL_PATTERN_LINEAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_PATTERN_LINEAR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _CAL_WR_DMA_CTRL_PATTERN_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_PATTERN_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
Lloh21:
	adrp	x8, _CAL_GEN_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAL_GEN_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _CAL_WR_DMA_CTRL_STALL_RD_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CAL_WR_DMA_CTRL_STALL_RD_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
	ldp	w0, w21, [x19]
	bl	_CAL_WR_DMA_CTRL
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x21
	bl	_reg_write
	ldp	w21, w22, [x19]
	mov	x0, x21
	bl	_CAL_WR_DMA_CTRL
	mov	x1, x0
	mov	x0, x22
	bl	_reg_read
	mov	x4, x0
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	mov	x3, x21
	bl	_ctx_dbg
	ldp	w0, w21, [x19]
	bl	_CAL_WR_DMA_OFST
	mov	x1, x0
	lsr	w2, w20, #4
Lloh29:
	adrp	x8, _CAL_WR_DMA_OFST_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CAL_WR_DMA_OFST_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_reg_write_field
	ldp	w21, w22, [x19]
	mov	x0, x21
	bl	_CAL_WR_DMA_OFST
	mov	x1, x0
	mov	x0, x22
	bl	_reg_read
	mov	x4, x0
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	mov	x3, x21
	bl	_ctx_dbg
	ldp	w0, w21, [x19]
	bl	_CAL_WR_DMA_XSIZE
	mov	x1, x0
	mov	x0, x21
	bl	_reg_read
	str	w0, [sp, #12]
Lloh34:
	adrp	x8, _CAL_WR_DMA_XSIZE_XSKIP_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CAL_WR_DMA_XSIZE_XSKIP_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #0
	bl	_set_field
	lsr	w1, w20, #3
Lloh37:
	adrp	x8, _CAL_WR_DMA_XSIZE_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAL_WR_DMA_XSIZE_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_set_field
	ldp	w0, w20, [x19]
	bl	_CAL_WR_DMA_XSIZE
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_reg_write
	ldp	w20, w21, [x19]
	mov	x0, x20
	bl	_CAL_WR_DMA_XSIZE
	mov	x1, x0
	mov	x0, x21
	bl	_reg_read
	mov	x4, x0
Lloh40:
	adrp	x2, l_.str.2@PAGE
Lloh41:
	add	x2, x2, l_.str.2@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	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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_WR_DMA_CTRL_CPORT_MASK,4,2 ; @CAL_WR_DMA_CTRL_CPORT_MASK
	.comm	_CAL_WR_DMA_CTRL_DTAG_PIX_DAT,4,2 ; @CAL_WR_DMA_CTRL_DTAG_PIX_DAT
	.comm	_CAL_WR_DMA_CTRL_DTAG_MASK,4,2  ; @CAL_WR_DMA_CTRL_DTAG_MASK
	.comm	_CAL_WR_DMA_CTRL_MODE_CONST,4,2 ; @CAL_WR_DMA_CTRL_MODE_CONST
	.comm	_CAL_WR_DMA_CTRL_MODE_MASK,4,2  ; @CAL_WR_DMA_CTRL_MODE_MASK
	.comm	_CAL_WR_DMA_CTRL_PATTERN_LINEAR,4,2 ; @CAL_WR_DMA_CTRL_PATTERN_LINEAR
	.comm	_CAL_WR_DMA_CTRL_PATTERN_MASK,4,2 ; @CAL_WR_DMA_CTRL_PATTERN_MASK
	.comm	_CAL_GEN_ENABLE,4,2             ; @CAL_GEN_ENABLE
	.comm	_CAL_WR_DMA_CTRL_STALL_RD_MASK,4,2 ; @CAL_WR_DMA_CTRL_STALL_RD_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CAL_WR_DMA_CTRL(%d) = 0x%08x\n"

	.comm	_CAL_WR_DMA_OFST_MASK,4,2       ; @CAL_WR_DMA_OFST_MASK
l_.str.1:                               ; @.str.1
	.asciz	"CAL_WR_DMA_OFST(%d) = 0x%08x\n"

	.comm	_CAL_WR_DMA_XSIZE_XSKIP_MASK,4,2 ; @CAL_WR_DMA_XSIZE_XSKIP_MASK
	.comm	_CAL_WR_DMA_XSIZE_MASK,4,2      ; @CAL_WR_DMA_XSIZE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"CAL_WR_DMA_XSIZE(%d) = 0x%08x\n"

	.no_dead_strip	_cal_wr_dma_config
.subsections_via_symbols
