	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vp9_level
_get_vp9_level:                         ## @get_vp9_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %ecx
	imull	(%rdi), %ecx
	xorl	%r8d, %r8d
	movl	$0, %eax
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	(%rsi), %edi
	movl	$0, %eax
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	movl	4(%rsi), %eax
	imull	%ecx, %eax
	cltd
	idivl	%edi
LBB0_3:
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.4:
	cmpl	$829440, %eax                   ## imm = 0xCA800
	jg	LBB0_6
## %bb.5:
	movl	$10, %r8d
	cmpl	$36865, %ecx                    ## imm = 0x9001
	jb	LBB0_27
LBB0_6:
	cmpl	$2764800, %eax                  ## imm = 0x2A3000
	jg	LBB0_8
## %bb.7:
	movl	$11, %r8d
	cmpl	$73729, %ecx                    ## imm = 0x12001
	jb	LBB0_27
LBB0_8:
	cmpl	$4608000, %eax                  ## imm = 0x465000
	jg	LBB0_10
## %bb.9:
	movl	$20, %r8d
	cmpl	$122881, %ecx                   ## imm = 0x1E001
	jb	LBB0_27
LBB0_10:
	cmpl	$9216000, %eax                  ## imm = 0x8CA000
	jg	LBB0_12
## %bb.11:
	movl	$21, %r8d
	cmpl	$245761, %ecx                   ## imm = 0x3C001
	jb	LBB0_27
LBB0_12:
	cmpl	$20736000, %eax                 ## imm = 0x13C6800
	jg	LBB0_14
## %bb.13:
	movl	$30, %r8d
	cmpl	$552961, %ecx                   ## imm = 0x87001
	jb	LBB0_27
LBB0_14:
	cmpl	$36864000, %eax                 ## imm = 0x2328000
	jg	LBB0_16
## %bb.15:
	movl	$31, %r8d
	cmpl	$983041, %ecx                   ## imm = 0xF0001
	jb	LBB0_27
LBB0_16:
	cmpl	$83558400, %eax                 ## imm = 0x4FB0000
	jg	LBB0_18
## %bb.17:
	movl	$40, %r8d
	cmpl	$2228225, %ecx                  ## imm = 0x220001
	jb	LBB0_27
LBB0_18:
	cmpl	$160432128, %eax                ## imm = 0x9900000
	jg	LBB0_20
## %bb.19:
	movl	$41, %r8d
	cmpl	$2228225, %ecx                  ## imm = 0x220001
	jb	LBB0_27
LBB0_20:
	cmpl	$311951360, %eax                ## imm = 0x12980000
	jg	LBB0_22
## %bb.21:
	movl	$50, %r8d
	cmpl	$8912897, %ecx                  ## imm = 0x880001
	jb	LBB0_27
LBB0_22:
	cmpl	$588251136, %eax                ## imm = 0x23100000
	jg	LBB0_24
## %bb.23:
	movl	$51, %r8d
	cmpl	$8912897, %ecx                  ## imm = 0x880001
	jb	LBB0_27
LBB0_24:
	cmpl	$1176502272, %eax               ## imm = 0x46200000
	jg	LBB0_26
## %bb.25:
	movl	$52, %r8d
	cmpl	$8912897, %ecx                  ## imm = 0x880001
	jb	LBB0_27
LBB0_26:
	xorl	%edx, %edx
	cmpl	$35651585, %ecx                 ## imm = 0x2200001
	movl	$61, %ecx
	cmovael	%edx, %ecx
	movl	$60, %r8d
	cmovael	%ecx, %r8d
	cmpl	$1176502273, %eax               ## imm = 0x46200001
	cmovgel	%ecx, %r8d
LBB0_27:
	movl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_vp9_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vp9_level
_get_vp9_level:                         ; @get_vp9_level
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	cbz	x1, LBB0_7
; %bb.1:
	ldr	w9, [x1]
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w10, [x1, #4]
	mul	w10, w10, w8
	sdiv	w9, w10, w9
LBB0_3:
	cmp	w8, #1
	b.lt	LBB0_8
LBB0_4:
	mov	w10, #43008
	movk	w10, #12, lsl #16
	cmp	w9, w10
	b.gt	LBB0_9
; %bb.5:
	cmp	w8, #9, lsl #12                 ; =36864
	b.hi	LBB0_9
; %bb.6:
	mov	w0, #10
	ret
LBB0_7:
	mov	w9, #0
	cmp	w8, #1
	b.ge	LBB0_4
LBB0_8:
	mov	w0, #0
	ret
LBB0_9:
	mov	w10, #1
	movk	w10, #15, lsl #16
	mov	w11, #8193
	movk	w11, #1, lsl #16
	add	w12, w10, #435, lsl #12         ; =1781760
	cmp	w9, w12
	b.ge	LBB0_12
; %bb.10:
	cmp	w8, w11
	b.hs	LBB0_12
; %bb.11:
	mov	w0, #11
	ret
LBB0_12:
	add	w12, w10, #885, lsl #12         ; =3624960
	cmp	w9, w12
	b.ge	LBB0_15
; %bb.13:
	add	w12, w11, #12, lsl #12          ; =49152
	cmp	w8, w12
	b.hs	LBB0_15
; %bb.14:
	mov	w0, #20
	ret
LBB0_15:
	add	w12, w10, #2010, lsl #12        ; =8232960
	cmp	w9, w12
	b.ge	LBB0_18
; %bb.16:
	add	w12, w11, #42, lsl #12          ; =172032
	cmp	w8, w12
	b.hs	LBB0_18
; %bb.17:
	mov	w0, #21
	ret
LBB0_18:
	mov	w12, #26624
	movk	w12, #316, lsl #16
	cmp	w9, w12
	b.gt	LBB0_21
; %bb.19:
	add	w11, w11, #117, lsl #12         ; =479232
	cmp	w8, w11
	b.hs	LBB0_21
; %bb.20:
	mov	w0, #30
	ret
LBB0_21:
	mov	w11, #1
	movk	w11, #544, lsl #16
	mov	w12, #32768
	movk	w12, #18, lsl #16
	orr	w12, w11, w12
	cmp	w9, w12
	b.ge	LBB0_24
; %bb.22:
	cmp	w8, w10
	b.hs	LBB0_24
; %bb.23:
	mov	w0, #31
	ret
LBB0_24:
	add	w12, w10, #304, lsl #12         ; =1245184
	mov	w13, #83558400
	cmp	w9, w13
	b.gt	LBB0_27
; %bb.25:
	cmp	w8, w12
	b.hs	LBB0_27
; %bb.26:
	mov	w0, #40
	ret
LBB0_27:
	mov	w13, #160432128
	cmp	w9, w13
	b.gt	LBB0_30
; %bb.28:
	cmp	w8, w12
	b.hs	LBB0_30
; %bb.29:
	mov	w0, #41
	ret
LBB0_30:
	add	w10, w10, #1936, lsl #12        ; =7929856
	mov	w12, #311951360
	cmp	w9, w12
	b.gt	LBB0_33
; %bb.31:
	cmp	w8, w10
	b.hs	LBB0_33
; %bb.32:
	mov	w0, #50
	ret
LBB0_33:
	mov	w12, #588251136
	cmp	w9, w12
	b.gt	LBB0_36
; %bb.34:
	cmp	w8, w10
	b.hs	LBB0_36
; %bb.35:
	mov	w0, #51
	ret
LBB0_36:
	mov	w12, #1176502272
	cmp	w9, w12
	b.gt	LBB0_39
; %bb.37:
	cmp	w8, w10
	b.hs	LBB0_39
; %bb.38:
	mov	w0, #52
	ret
LBB0_39:
	mov	w10, #61
	cmp	w8, w11
	csel	w8, w10, wzr, lo
	mov	w10, #1
	movk	w10, #17952, lsl #16
	ccmp	w9, w10, #0, lo
	mov	w9, #60
	csel	w0, w9, w8, lt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_vp9_level
.subsections_via_symbols
