	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_rational_to_fixed_16_16   ## -- Begin function mmal_rational_to_fixed_16_16
	.p2align	4, 0x90
_mmal_rational_to_fixed_16_16:          ## @mmal_rational_to_fixed_16_16
	.cfi_startproc
## %bb.0:
	movq	%rsi, %rax
	shll	$16, %eax
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	cmovgl	%edx, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_INT_MIN,4,2                    ## @INT_MIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_rational_to_fixed_16_16   ; -- Begin function mmal_rational_to_fixed_16_16
	.p2align	2
_mmal_rational_to_fixed_16_16:          ; @mmal_rational_to_fixed_16_16
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #16
	cbz	w0, LBB0_2
; %bb.1:
	sdiv	w8, w8, w0
LBB0_2:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _INT_MIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INT_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	csel	w10, w8, w10, gt
	cmp	w8, w9
	csel	w0, w9, w10, gt
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_INT_MIN,4,2                    ; @INT_MIN
.subsections_via_symbols
