	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_stream2fourcc
_avi_stream2fourcc:                     ## @avi_stream2fourcc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movslq	%esi, %rcx
	imulq	$1717986919, %rcx, %rsi         ## imm = 0x66666667
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$34, %rsi
	addl	%edi, %esi
	leal	48(%rsi), %edi
	movb	%dil, (%rax)
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %esi
	subl	%esi, %ecx
	addb	$48, %cl
	movb	%cl, 1(%rax)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movb	$100, 2(%rax)
	movb	$99, %cl
	jmp	LBB0_6
LBB0_2:
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_4
## %bb.3:
	movb	$115, 2(%rax)
	jmp	LBB0_5
LBB0_4:
	movb	$119, 2(%rax)
LBB0_5:
	movb	$98, %cl
LBB0_6:
	movb	%cl, 3(%rax)
	movb	$0, 4(%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.no_dead_strip	_avi_stream2fourcc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avi_stream2fourcc
_avi_stream2fourcc:                     ; @avi_stream2fourcc
	.cfi_startproc
; %bb.0:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w9, w8, #48
	strb	w9, [x0]
	mov	w9, #10
	msub	w8, w8, w9, w1
	add	w8, w8, #48
	strb	w8, [x0, #1]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #100
	strb	w8, [x0, #2]
	mov	w8, #99
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #115
	b	LBB0_5
LBB0_4:
	mov	w8, #119
LBB0_5:
	strb	w8, [x0, #2]
	mov	w8, #98
LBB0_6:
	strb	w8, [x0, #3]
	strb	wzr, [x0, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.no_dead_strip	_avi_stream2fourcc
.subsections_via_symbols
