	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function artificial_camera_port_format_commit
_artificial_camera_port_format_commit:  ## @artificial_camera_port_format_commit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rsi), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	addl	$31, %ecx
	andl	$-32, %ecx
	addl	$15, %edx
	andl	$-16, %edx
	movl	(%rsi), %esi
	cmpl	$128, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_6
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_3
## %bb.4:
	movl	%edx, %r8d
	imull	%ecx, %r8d
	leal	(%r8,%r8,2), %esi
	shrl	%esi
	movl	%esi, (%rax)
	movl	$3, 8(%rax)
	movq	16(%rax), %r9
	movl	%ecx, (%r9)
	movq	24(%rax), %rsi
	movl	%r8d, 4(%rsi)
	shrl	%ecx
	movl	%ecx, 4(%r9)
	imull	%ecx, %edx
	shrl	%edx
	jmp	LBB0_7
LBB0_5:
	imull	%ecx, %edx
	leal	(%rdx,%rdx,2), %esi
	shrl	%esi
	movl	%esi, (%rax)
	movl	$2, 8(%rax)
	movq	16(%rax), %r8
	movl	%ecx, (%r8)
	movq	24(%rax), %rsi
	movl	%edx, 4(%rsi)
	movl	%ecx, 4(%r8)
	jmp	LBB0_8
LBB0_6:
	movl	%edx, %r8d
	imull	%ecx, %r8d
	leal	(%r8,%r8), %esi
	movl	%esi, (%rax)
	movl	$3, 8(%rax)
	movq	16(%rax), %r9
	movl	%ecx, (%r9)
	movq	24(%rax), %rsi
	movl	%r8d, 4(%rsi)
	shrl	%ecx
	movl	%ecx, 4(%r9)
	imull	%ecx, %edx
LBB0_7:
	addl	4(%rsi), %edx
	movl	%edx, 8(%rsi)
	movl	%ecx, 8(%r9)
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movl	%eax, (%rdi)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENOSYS,4,2                ## @MMAL_ENOSYS
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_artificial_camera_port_format_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function artificial_camera_port_format_commit
_artificial_camera_port_format_commit:  ; @artificial_camera_port_format_commit
	.cfi_startproc
; %bb.0:
	ldp	x11, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x9, [x11, #8]
	ldp	w10, w12, [x9]
	add	w9, w10, #31
	and	w9, w9, #0xffffffe0
	add	w10, w12, #15
	and	w10, w10, #0xfffffff0
	ldr	w11, [x11]
	cmp	w11, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w11, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w11, #130
	b.ne	LBB0_8
; %bb.3:
	mul	w11, w10, w9
	add	w12, w11, w11, lsl #1
	lsr	w12, w12, #1
	str	w12, [x8]
	mov	w12, #3
	str	w12, [x8, #8]
	ldp	x12, x13, [x8, #16]
	str	w9, [x12]
	str	w11, [x13, #4]
	lsr	w9, w9, #1
	str	w9, [x12, #4]
	ldr	w11, [x13, #4]
	mul	w10, w9, w10
	add	w10, w11, w10, lsr #1
	b	LBB0_6
LBB0_4:
	mul	w10, w10, w9
	add	w11, w10, w10, lsl #1
	lsr	w11, w11, #1
	str	w11, [x8]
	mov	w11, #2
	str	w11, [x8, #8]
	ldp	x11, x12, [x8, #16]
	str	w9, [x11]
	str	w10, [x12, #4]
	str	w9, [x11, #4]
	b	LBB0_7
LBB0_5:
	mul	w11, w10, w9
	lsl	w12, w11, #1
	str	w12, [x8]
	mov	w12, #3
	str	w12, [x8, #8]
	ldp	x12, x13, [x8, #16]
	str	w9, [x12]
	str	w11, [x13, #4]
	lsr	w9, w9, #1
	str	w9, [x12, #4]
	ldr	w11, [x13, #4]
	madd	w10, w9, w10, w11
LBB0_6:
	str	w10, [x13, #8]
	str	w9, [x12, #8]
LBB0_7:
	ldr	w8, [x8]
	stp	w8, w8, [x0]
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh3:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENOSYS,4,2                ; @MMAL_ENOSYS
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_artificial_camera_port_format_commit
.subsections_via_symbols
