	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_simplify_fraction          ## -- Begin function uvc_simplify_fraction
	.p2align	4, 0x90
_uvc_simplify_fraction:                 ## @uvc_simplify_fraction
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r9
	xorl	%eax, %eax
	movl	$1, %ecx
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.2:
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_17
## %bb.3:
	movl	(%r14), %ebx
	movl	%r12d, %r8d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	%edx, %ebx
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, (%r9,%rsi,4)
	cmpl	%r13d, %eax
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	cmpq	%r8, %rsi
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%edx, %edx
	jne	LBB0_4
LBB0_8:
	testl	%esi, %esi
	je	LBB0_9
LBB0_10:
	movl	%esi, %edx
	leaq	-1(%rdx), %rax
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_12
## %bb.11:
	xorl	%esi, %esi
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$2, %esi
	adcl	$0, %esi
	testl	%esi, %esi
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_12:
	movl	%edx, %ebx
	andl	$-4, %ebx
	xorl	%esi, %esi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r9,%rdx,4), %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	movl	-8(%r9,%rdx,4), %edi
	imull	%eax, %edi
	addl	%ecx, %edi
	movl	-12(%r9,%rdx,4), %esi
	imull	%edi, %esi
	addl	%eax, %esi
	movl	-16(%r9,%rdx,4), %ecx
	imull	%esi, %ecx
	addq	$-4, %rdx
	addl	%edi, %ecx
	addq	$-4, %rbx
	jne	LBB0_13
LBB0_14:
	movl	%esi, %eax
	testq	%r8, %r8
	je	LBB0_17
## %bb.15:
	leaq	(%r9,%rdx,4), %rdx
	addq	$-4, %rdx
	negq	%r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	movl	(%rdx,%rbx,4), %ecx
	imull	%eax, %ecx
	addl	%esi, %ecx
	decq	%rbx
	movl	%eax, %esi
	cmpq	%rbx, %r8
	jne	LBB0_16
LBB0_17:
	movl	%ecx, (%r14)
	movl	%eax, (%r15)
	movq	%r9, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_simplify_fraction          ; -- Begin function uvc_simplify_fraction
	.p2align	2
_uvc_simplify_fraction:                 ; @uvc_simplify_fraction
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_10
; %bb.1:
	mov	w9, #0
	mov	w8, #1
	cbz	w22, LBB0_13
; %bb.2:
	ldr	w11, [x19]
	cbz	w11, LBB0_13
; %bb.3:
	mov	x8, #0
	ldr	w10, [x20]
	mov	w9, w22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x11
	udiv	w11, w10, w11
	str	w11, [x0, x8, lsl #2]
	cmp	w11, w21
	b.hs	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	msub	w11, w11, w12, w10
	mov	x10, x12
	cbnz	w11, LBB0_4
LBB0_7:
	cbz	w8, LBB0_12
LBB0_8:
	mov	w12, #0
	mov	w8, w8
	lsl	x10, x8, #2
	sub	x11, x0, #4
	mov	w8, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	w8, [x11, x10]
	madd	w8, w8, w9, w12
	mov	x12, x9
	subs	x10, x10, #4
	b.ne	LBB0_9
	b	LBB0_13
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	w8, #2
	cinc	w8, w8, lo
	cbnz	w8, LBB0_8
LBB0_12:
	mov	w9, #0
	mov	w8, #1
LBB0_13:
	str	w8, [x20]
	str	w9, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
