	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m5mols_set_fmt
_m5mols_set_fmt:                        ## @m5mols_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_m5mols
	movq	%rax, %r13
	leaq	4(%r15), %rsi
	movl	$0, -44(%rbp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rsi, %rbx
	callq	___find_resolution
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	(%r15), %edx
	movl	-48(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	___find_format
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_m5mols_default_ffmt@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	-48(%rbp), %eax
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 12(%r15)
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r15)
	movl	(%r15), %ecx
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %ecx
	movl	%ecx, 8(%r14)
	movq	(%rbx), %rcx
	movq	%rcx, (%r14)
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ecx, 8(%rbx)
	movl	%eax, (%rbx)
LBB0_5:
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m5mols_default_ffmt,8,3        ## @m5mols_default_ffmt
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_m5mols_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m5mols_set_fmt
_m5mols_set_fmt:                        ; @m5mols_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_to_m5mols
	mov	x20, x0
	add	x21, x22, #4
	str	wzr, [sp, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	___find_resolution
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x23
	bl	___find_format
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_lock
Lloh0:
	adrp	x8, _m5mols_default_ffmt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m5mols_default_ffmt@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [sp, #12]
	ldr	w9, [x9, x8, lsl #2]
Lloh3:
	adrp	x10, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
	str	w9, [x22, #12]
Lloh5:
	ldr	w9, [x10]
Lloh6:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w9, [x22, #4]
	ldr	w9, [x22]
Lloh9:
	adrp	x10, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x21]
	ldr	w10, [x21, #8]
	str	w10, [x24, #8]
	str	x9, [x24]
	ldr	w9, [sp, #8]
	str	w9, [x20, #8]
	str	w8, [x20]
LBB0_4:
	mov	x0, x23
	bl	_mutex_unlock
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.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	_m5mols_default_ffmt,8,3        ; @m5mols_default_ffmt
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_m5mols_set_fmt
.subsections_via_symbols
