	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_calc_aspect_ratio         ## -- Begin function v4l2_calc_aspect_ratio
	.p2align	4, 0x90
_v4l2_calc_aspect_ratio:                ## @v4l2_calc_aspect_ratio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edi killed $edi def $rdi
	movl	%esi, %eax
	orl	%edi, %eax
	je	LBB0_1
## %bb.2:
	testl	%edi, %edi
	je	LBB0_5
## %bb.3:
	movl	%esi, %ebx
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movl	%edi, %eax
	shlq	$32, %rbx
	orq	%rax, %rbx
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movabsq	$38654705679, %rbx              ## imm = 0x90000000F
	cmpl	$79, %eax
	je	LBB0_6
## %bb.7:
	cmpl	$68, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$34, %eax
	jne	LBB0_10
## %bb.9:
	movabsq	$12884901892, %rbx              ## imm = 0x300000004
	testl	%edi, %edi
	jne	LBB0_13
	jmp	LBB0_12
LBB0_6:
	incq	%rbx
LBB0_11:
	testl	%edi, %edi
	jne	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%ebx, %esi
	callq	_swap
LBB0_13:
	movabsq	$38654705680, %rax              ## imm = 0x900000010
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	leal	99(%rdi), %eax
	movabsq	$429496729600, %rbx             ## imm = 0x6400000000
	orq	%rax, %rbx
	testl	%edi, %edi
	jne	LBB0_13
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_calc_aspect_ratio         ; -- Begin function v4l2_calc_aspect_ratio
	.p2align	2
_v4l2_calc_aspect_ratio:                ; @v4l2_calc_aspect_ratio
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	orr	w8, w1, w0
	cbz	w8, LBB0_4
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
	cbz	w1, LBB0_5
; %bb.3:
	mov	w19, w0
	bfi	x19, x1, #32, #32
	b	LBB0_7
LBB0_4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	mov	x9, #15
	movk	x9, #9, lsl #32
	cmp	w8, #34
	add	w10, w0, #99
	mov	x11, #429496729600
	orr	x10, x10, x11
	mov	x11, #4
	movk	x11, #3, lsl #32
	csel	x10, x10, x11, ne
	cmp	w8, #68
	csel	x10, x9, x10, eq
	cmp	w8, #79
	csinc	x19, x10, x9, ne
	cbnz	w0, LBB0_7
; %bb.6:
	lsr	x0, x19, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	_swap
LBB0_7:
	mov	x0, #16
	movk	x0, #9, lsl #32
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
