	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cafe_ctlr_image
_cafe_ctlr_image:                       ## @cafe_ctlr_image
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_IMGSZ_V_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_IMGSZ_V_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IMGSZ_H_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	4(%rdi), %edx
	orl	%eax, %edx
	movq	_REG_IMGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cafe_reg_write
	movq	_REG_IMGOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cafe_reg_write
	movq	_REG_IMGPITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	_IMGP_YP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_cafe_reg_write_mask
	movl	8(%rbx), %edx
	cmpl	$130, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.3:
	movq	_REG_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_C0_DF_YUV@GOTPCREL(%rip), %rax
	movq	_C0_YUV_PACKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_C0_YUVE_YUYV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_REG_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_C0_DF_RGB@GOTPCREL(%rip), %rax
	movq	_C0_RGBF_444@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_C0_RGB4_XRGB@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_REG_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_C0_DF_RGB@GOTPCREL(%rip), %rax
	movq	_C0_RGBF_565@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_C0_RGB5_BGGR@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %edx
	movq	_C0_DF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_cafe_reg_write_mask
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cam_err
LBB0_8:
	movq	_REG_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_C0_SIF_HVSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_C0_SIFM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cafe_reg_write_mask            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMGSZ_V_SHIFT,4,2              ## @IMGSZ_V_SHIFT
	.comm	_IMGSZ_V_MASK,4,2               ## @IMGSZ_V_MASK
	.comm	_IMGSZ_H_MASK,4,2               ## @IMGSZ_H_MASK
	.comm	_REG_IMGSIZE,4,2                ## @REG_IMGSIZE
	.comm	_REG_IMGOFFSET,4,2              ## @REG_IMGOFFSET
	.comm	_REG_IMGPITCH,4,2               ## @REG_IMGPITCH
	.comm	_IMGP_YP_MASK,4,2               ## @IMGP_YP_MASK
	.comm	_REG_CTRL0,4,2                  ## @REG_CTRL0
	.comm	_C0_DF_YUV,4,2                  ## @C0_DF_YUV
	.comm	_C0_YUV_PACKED,4,2              ## @C0_YUV_PACKED
	.comm	_C0_YUVE_YUYV,4,2               ## @C0_YUVE_YUYV
	.comm	_C0_DF_MASK,4,2                 ## @C0_DF_MASK
	.comm	_C0_DF_RGB,4,2                  ## @C0_DF_RGB
	.comm	_C0_RGBF_444,4,2                ## @C0_RGBF_444
	.comm	_C0_RGB4_XRGB,4,2               ## @C0_RGB4_XRGB
	.comm	_C0_RGBF_565,4,2                ## @C0_RGBF_565
	.comm	_C0_RGB5_BGGR,4,2               ## @C0_RGB5_BGGR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown format %x\n"

	.comm	_C0_SIF_HVSYNC,4,2              ## @C0_SIF_HVSYNC
	.comm	_C0_SIFM_MASK,4,2               ## @C0_SIFM_MASK
	.no_dead_strip	_cafe_ctlr_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cafe_ctlr_image
_cafe_ctlr_image:                       ; @cafe_ctlr_image
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _IMGSZ_V_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMGSZ_V_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	lsl	w8, w9, w8
Lloh3:
	adrp	x9, _IMGSZ_V_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMGSZ_V_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh6:
	adrp	x9, _IMGSZ_H_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMGSZ_H_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w10
	orr	w2, w9, w8
Lloh9:
	adrp	x8, _REG_IMGSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_IMGSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_cafe_reg_write
Lloh12:
	adrp	x8, _REG_IMGOFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_IMGOFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cafe_reg_write
Lloh15:
	adrp	x8, _REG_IMGPITCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_IMGPITCH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh18:
	adrp	x8, _IMGP_YP_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IMGP_YP_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_cafe_reg_write_mask
	ldr	w2, [x19, #8]
Lloh21:
	adrp	x20, _REG_CTRL0@GOTPAGE
Lloh22:
	ldr	x20, [x20, _REG_CTRL0@GOTPAGEOFF]
	cmp	w2, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _C0_DF_YUV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _C0_DF_YUV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _C0_YUV_PACKED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _C0_YUV_PACKED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _C0_YUVE_YUYV@GOTPAGE
Lloh30:
	ldr	x10, [x10, _C0_YUVE_YUYV@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w1, [x20]
Lloh31:
	adrp	x8, _C0_DF_RGB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _C0_DF_RGB@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _C0_RGBF_444@GOTPAGE
Lloh35:
	ldr	x9, [x9, _C0_RGBF_444@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _C0_RGB4_XRGB@GOTPAGE
Lloh38:
	ldr	x10, [x10, _C0_RGB4_XRGB@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w1, [x20]
Lloh39:
	adrp	x8, _C0_DF_RGB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _C0_DF_RGB@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _C0_RGBF_565@GOTPAGE
Lloh43:
	ldr	x9, [x9, _C0_RGBF_565@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _C0_RGB5_BGGR@GOTPAGE
Lloh46:
	ldr	x10, [x10, _C0_RGB5_BGGR@GOTPAGEOFF]
LBB0_6:
	orr	w8, w9, w8
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh47:
	adrp	x8, _C0_DF_MASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _C0_DF_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_cafe_reg_write_mask
	b	LBB0_8
LBB0_7:
Lloh50:
	adrp	x1, l_.str@PAGE
Lloh51:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cam_err
LBB0_8:
	ldr	w1, [x20]
Lloh52:
	adrp	x8, _C0_SIF_HVSYNC@GOTPAGE
Lloh53:
	ldr	x8, [x8, _C0_SIF_HVSYNC@GOTPAGEOFF]
Lloh54:
	adrp	x9, _C0_SIFM_MASK@GOTPAGE
Lloh55:
	ldr	x9, [x9, _C0_SIFM_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
Lloh57:
	ldr	w3, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cafe_reg_write_mask
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_IMGSZ_V_SHIFT,4,2              ; @IMGSZ_V_SHIFT
	.comm	_IMGSZ_V_MASK,4,2               ; @IMGSZ_V_MASK
	.comm	_IMGSZ_H_MASK,4,2               ; @IMGSZ_H_MASK
	.comm	_REG_IMGSIZE,4,2                ; @REG_IMGSIZE
	.comm	_REG_IMGOFFSET,4,2              ; @REG_IMGOFFSET
	.comm	_REG_IMGPITCH,4,2               ; @REG_IMGPITCH
	.comm	_IMGP_YP_MASK,4,2               ; @IMGP_YP_MASK
	.comm	_REG_CTRL0,4,2                  ; @REG_CTRL0
	.comm	_C0_DF_YUV,4,2                  ; @C0_DF_YUV
	.comm	_C0_YUV_PACKED,4,2              ; @C0_YUV_PACKED
	.comm	_C0_YUVE_YUYV,4,2               ; @C0_YUVE_YUYV
	.comm	_C0_DF_MASK,4,2                 ; @C0_DF_MASK
	.comm	_C0_DF_RGB,4,2                  ; @C0_DF_RGB
	.comm	_C0_RGBF_444,4,2                ; @C0_RGBF_444
	.comm	_C0_RGB4_XRGB,4,2               ; @C0_RGB4_XRGB
	.comm	_C0_RGBF_565,4,2                ; @C0_RGBF_565
	.comm	_C0_RGB5_BGGR,4,2               ; @C0_RGB5_BGGR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown format %x\n"

	.comm	_C0_SIF_HVSYNC,4,2              ; @C0_SIF_HVSYNC
	.comm	_C0_SIFM_MASK,4,2               ; @C0_SIFM_MASK
	.no_dead_strip	_cafe_ctlr_image
.subsections_via_symbols
