	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_param_rational_generic ## -- Begin function mmalomx_param_rational_generic
	.p2align	4, 0x90
_mmalomx_param_rational_generic:        ## @mmalomx_param_rational_generic
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	16(%rdx), %r15
	movq	%r8, %rdi
	callq	_MMAL_PARAM_UNUSED
	xorl	%r14d, %r14d
	cmpq	$1, 8(%r12)
	adcq	$3, %r14
	movq	_MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movl	%eax, 16(%rbx)
	movl	(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_mmal_rational_simplify
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %r13
	movq	%r15, %rdi
	callq	_mmal_rational_simplify
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$0, (%r15,%r14,4)
	movl	20(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	(%r12), %eax
	imull	(%r13), %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r15,%r14,4)
LBB0_4:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMALOMX_PARAM_MAPPING_TO_MMAL,8,3 ## @MMALOMX_PARAM_MAPPING_TO_MMAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalomx_param_rational_generic ; -- Begin function mmalomx_param_rational_generic
	.p2align	2
_mmalomx_param_rational_generic:        ; @mmalomx_param_rational_generic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	add	x21, x2, #16
	mov	x0, x4
	bl	_MMAL_PARAM_UNUSED
	ldr	x8, [x20, #8]
	cmp	x8, #0
	mov	w8, #3
	cinc	x24, x8, eq
Lloh0:
	adrp	x8, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMALOMX_PARAM_MAPPING_TO_MMAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, x24, lsl #2]
	ldr	w9, [x20]
	stp	w8, w9, [x22, #16]
	mov	x0, x21
	bl	_mmal_rational_simplify
	b	LBB0_4
LBB0_2:
	mov	x0, x21
	bl	_mmal_rational_simplify
	str	wzr, [x19, x24, lsl #2]
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w9, [x21]
	ldr	w10, [x20]
	mul	w9, w10, w9
	sdiv	w8, w9, w8
	str	w8, [x19, x24, lsl #2]
LBB0_4:
Lloh3:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMALOMX_PARAM_MAPPING_TO_MMAL,8,3 ; @MMALOMX_PARAM_MAPPING_TO_MMAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
.subsections_via_symbols
