	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vimc_sen_adjust_fmt
_vimc_sen_adjust_fmt:                   ## @vimc_sen_adjust_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_vimc_pix_map_by_code
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_fmt_default@GOTPCREL(%rip), %rax
	movl	8(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_2:
	movq	_u32@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movq	_VIMC_FRAME_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIMC_FRAME_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	andl	$-2, %eax
	movl	%eax, (%rbx)
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	movq	_VIMC_FRAME_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIMC_FRAME_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	andl	$-2, %eax
	movl	%eax, 4(%rbx)
	movq	8(%rbx), %rax
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_fmt_default@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vimc_colorimetry_clamp         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fmt_default,16,3               ## @fmt_default
	.comm	_u32,4,2                        ## @u32
	.comm	_VIMC_FRAME_MIN_WIDTH,4,2       ## @VIMC_FRAME_MIN_WIDTH
	.comm	_VIMC_FRAME_MAX_WIDTH,4,2       ## @VIMC_FRAME_MAX_WIDTH
	.comm	_VIMC_FRAME_MIN_HEIGHT,4,2      ## @VIMC_FRAME_MIN_HEIGHT
	.comm	_VIMC_FRAME_MAX_HEIGHT,4,2      ## @VIMC_FRAME_MAX_HEIGHT
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
	.no_dead_strip	_vimc_sen_adjust_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vimc_sen_adjust_fmt
_vimc_sen_adjust_fmt:                   ; @vimc_sen_adjust_fmt
	.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
	ldr	w0, [x0, #16]
	bl	_vimc_pix_map_by_code
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _fmt_default@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fmt_default@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8, #8]
	str	w8, [x19, #16]
LBB0_2:
Lloh3:
	adrp	x20, _u32@GOTPAGE
Lloh4:
	ldr	x20, [x20, _u32@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _VIMC_FRAME_MIN_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VIMC_FRAME_MIN_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _VIMC_FRAME_MAX_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIMC_FRAME_MAX_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_clamp_t
	and	w8, w0, #0xfffffffe
	str	w8, [x19]
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
Lloh11:
	adrp	x8, _VIMC_FRAME_MIN_HEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VIMC_FRAME_MIN_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _VIMC_FRAME_MAX_HEIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VIMC_FRAME_MAX_HEIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_clamp_t
	and	w8, w0, #0xfffffffe
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _V4L2_FIELD_ANY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh20:
	adrp	x9, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
Lloh23:
	adrp	x8, _fmt_default@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fmt_default@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vimc_colorimetry_clamp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_fmt_default,16,3               ; @fmt_default
	.comm	_u32,4,2                        ; @u32
	.comm	_VIMC_FRAME_MIN_WIDTH,4,2       ; @VIMC_FRAME_MIN_WIDTH
	.comm	_VIMC_FRAME_MAX_WIDTH,4,2       ; @VIMC_FRAME_MAX_WIDTH
	.comm	_VIMC_FRAME_MIN_HEIGHT,4,2      ; @VIMC_FRAME_MIN_HEIGHT
	.comm	_VIMC_FRAME_MAX_HEIGHT,4,2      ; @VIMC_FRAME_MAX_HEIGHT
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
	.no_dead_strip	_vimc_sen_adjust_fmt
.subsections_via_symbols
