	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcmi_set_fmt
_dcmi_set_fmt:                          ## @dcmi_set_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_dcmi_try_fmt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$0, (%r14)
LBB0_3:
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_fill_mbus_format
	movq	-40(%rbp), %rax
	movq	%rax, -72(%rbp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_dcmi_pipeline_s_fmt
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	40(%r14), %edi
	movq	-80(%rbp), %rdx
	movl	-68(%rbp), %ecx
	movl	-72(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	40(%r14), %edi
	movl	8(%r15), %r8d
	movl	12(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_dbg
	movups	(%r15), %xmm0
	movups	%xmm0, 24(%r14)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r14)
	movq	-40(%rbp), %rax
	movq	%rax, 4(%r14)
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor format set to 0x%x %ux%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Buffer format set to %4.4s %ux%u\n"

	.no_dead_strip	_dcmi_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcmi_set_fmt
_dcmi_set_fmt:                          ; @dcmi_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_dcmi_try_fmt
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x19]
LBB0_3:
	ldr	x8, [sp, #16]
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	x1, x20
	bl	_v4l2_fill_mbus_format
	ldr	d0, [sp, #8]
	str	d0, [sp, #32]
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, #0
	bl	_dcmi_pipeline_s_fmt
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x19, #40]
	ldr	x2, [sp, #24]
	ldp	w4, w3, [sp, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #40]
	ldp	w4, w3, [x20, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	ldr	q0, [x20]
	stur	q0, [x19, #24]
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
	ldr	x8, [sp, #8]
	stur	x8, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor format set to 0x%x %ux%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Buffer format set to %4.4s %ux%u\n"

	.no_dead_strip	_dcmi_set_fmt
.subsections_via_symbols
