	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_formatting
_set_formatting:                        ## @set_formatting
	.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	(%rdi), %eax
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	$0, 4(%rbx)
	movq	_GO7007_RATIO_1_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	$0, 72(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	jmp	LBB0_15
LBB0_2:
	cmpl	$128, %eax
	movl	$245, %ecx
	movl	$72, %edx
	cmovel	%ecx, %edx
	xorl	%r14d, %r14d
	cmpl	$130, %eax
	cmovel	%r14d, %edx
	movl	%edx, 4(%rbx)
	movl	68(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, 8(%rbx)
	movl	64(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, 16(%rbx)
	movl	60(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 12(%rbx)
	movl	56(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, 32(%rbx)
	movl	52(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, 20(%rbx)
	movq	$1, 24(%rbx)
	cmpl	$129, (%rbx)
	jne	LBB0_9
## %bb.3:
	cmpl	$9800000, 32(%rbx)              ## imm = 0x958940
	jne	LBB0_8
## %bb.4:
	cmpl	$15, 8(%rbx)
	jne	LBB0_8
## %bb.5:
	cmpl	$0, 12(%rbx)
	jne	LBB0_8
## %bb.6:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%r14d, %r14d
	cmpl	$0, 16(%rbx)
	setne	%r14b
LBB0_8:
	movl	%r14d, 28(%rbx)
LBB0_9:
	movl	48(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	cmpl	$131, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$133, %eax
	jne	LBB0_11
## %bb.13:
	movq	_GO7007_RATIO_16_9@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_GO7007_RATIO_4_3@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_GO7007_RATIO_1_1@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ## @V4L2_PIX_FMT_MJPEG
	.comm	_GO7007_RATIO_1_1,8,3           ## @GO7007_RATIO_1_1
	.comm	_GO7007_RATIO_4_3,8,3           ## @GO7007_RATIO_4_3
	.comm	_GO7007_RATIO_16_9,8,3          ## @GO7007_RATIO_16_9
	.no_dead_strip	_set_formatting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function set_formatting
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_set_formatting:                        ; @set_formatting
	.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	w8, [x0]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x19, #4]
Lloh3:
	adrp	x8, _GO7007_RATIO_1_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GO7007_RATIO_1_1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	str	xzr, [x19, #72]
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
	b	LBB0_16
LBB0_2:
	mov	w9, #72
	mov	w10, #245
	cmp	w8, #128
	csel	w9, w10, w9, eq
	cmp	w8, #130
	csel	w8, wzr, w9, eq
	str	w8, [x19, #4]
	ldr	w0, [x19, #68]
	bl	_v4l2_ctrl_g_ctrl
	str	w0, [x19, #8]
	ldr	w0, [x19, #64]
	bl	_v4l2_ctrl_g_ctrl
	str	w0, [x19, #16]
	ldr	w0, [x19, #60]
	bl	_v4l2_ctrl_g_ctrl
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #12]
	ldr	w0, [x19, #56]
	bl	_v4l2_ctrl_g_ctrl
	str	w0, [x19, #32]
	ldr	w0, [x19, #52]
	bl	_v4l2_ctrl_g_ctrl
	str	w0, [x19, #20]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #24]
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x19, #32]
	sub	w8, w8, #2392, lsl #12          ; =9797632
	cmp	w8, #2368
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #15
	b.ne	LBB0_8
; %bb.5:
	mov	w8, #0
	ldr	w9, [x19, #12]
	cbnz	w9, LBB0_9
; %bb.6:
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_9
LBB0_8:
	mov	w8, #0
LBB0_9:
	str	w8, [x19, #28]
LBB0_10:
	ldr	w0, [x19, #48]
	bl	_v4l2_ctrl_g_ctrl
	cmp	w0, #131
	b.eq	LBB0_13
; %bb.11:
	cmp	w0, #133
	b.ne	LBB0_14
; %bb.12:
Lloh8:
	adrp	x8, _GO7007_RATIO_16_9@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GO7007_RATIO_16_9@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh10:
	adrp	x8, _GO7007_RATIO_4_3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GO7007_RATIO_4_3@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _GO7007_RATIO_1_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GO7007_RATIO_1_1@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ; @V4L2_PIX_FMT_MJPEG
	.comm	_GO7007_RATIO_1_1,8,3           ; @GO7007_RATIO_1_1
	.comm	_GO7007_RATIO_4_3,8,3           ; @GO7007_RATIO_4_3
	.comm	_GO7007_RATIO_16_9,8,3          ; @GO7007_RATIO_16_9
	.no_dead_strip	_set_formatting
.subsections_via_symbols
