	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_encoder               ## -- Begin function hb_video_encoder
	.p2align	4, 0x90
_hb_video_encoder:                      ## @hb_video_encoder
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	leal	-132(%rsi), %eax
	cmpl	$15, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_WORK_ENCQSV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_WORK_ENCX264@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_WORK_ENCTHEORA@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_hb_get_work                    ## TAILCALL
LBB0_12:
	movq	_WORK_ENCAVCODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	_AV_CODEC_ID_HEVC@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_11:
	movq	_WORK_ENCAVCODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	movq	_WORK_ENCAVCODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	_AV_CODEC_ID_VP9@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_WORK_ENCAVCODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	_AV_CODEC_ID_VP8@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_13:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hb_error
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_WORK_ENCAVCODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_WORK_ENCAVCODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_WORK_ENCAVCODEC,4,2            ## @WORK_ENCAVCODEC
	.comm	_AV_CODEC_ID_MPEG4,8,3          ## @AV_CODEC_ID_MPEG4
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_VP8,8,3            ## @AV_CODEC_ID_VP8
	.comm	_AV_CODEC_ID_VP9,8,3            ## @AV_CODEC_ID_VP9
	.comm	_WORK_ENCX264,4,2               ## @WORK_ENCX264
	.comm	_WORK_ENCQSV,4,2                ## @WORK_ENCQSV
	.comm	_WORK_ENCTHEORA,4,2             ## @WORK_ENCTHEORA
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AV_CODEC_ID_HEVC,8,3           ## @AV_CODEC_ID_HEVC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown video codec (0x%x)"

	.comm	_WORK_ENCX265,4,2               ## @WORK_ENCX265
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_video_encoder               ; -- Begin function hb_video_encoder
	.p2align	2
_hb_video_encoder:                      ; @hb_video_encoder
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #132
	cmp	w8, #15
	b.hi	LBB0_10
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _WORK_ENCQSV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WORK_ENCQSV@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _WORK_ENCX264@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WORK_ENCX264@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _WORK_ENCTHEORA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WORK_ENCTHEORA@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_hb_get_work
LBB0_6:
Lloh8:
	adrp	x8, _WORK_ENCAVCODEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WORK_ENCAVCODEC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_hb_get_work
Lloh11:
	adrp	x8, _AV_CODEC_ID_HEVC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_CODEC_ID_HEVC@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _WORK_ENCAVCODEC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WORK_ENCAVCODEC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_hb_get_work
Lloh16:
	adrp	x8, _AV_CODEC_ID_H264@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_CODEC_ID_H264@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh18:
	adrp	x8, _WORK_ENCAVCODEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WORK_ENCAVCODEC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_hb_get_work
Lloh21:
	adrp	x8, _AV_CODEC_ID_VP9@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_CODEC_ID_VP9@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh23:
	adrp	x8, _WORK_ENCAVCODEC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WORK_ENCAVCODEC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_hb_get_work
Lloh26:
	adrp	x8, _AV_CODEC_ID_VP8@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_CODEC_ID_VP8@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh30:
	adrp	x8, _WORK_ENCAVCODEC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WORK_ENCAVCODEC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_hb_get_work
Lloh33:
	adrp	x8, _AV_CODEC_ID_MPEG4@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_CODEC_ID_MPEG4@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh35:
	adrp	x8, _WORK_ENCAVCODEC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WORK_ENCAVCODEC@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_hb_get_work
Lloh38:
	adrp	x8, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_WORK_ENCAVCODEC,4,2            ; @WORK_ENCAVCODEC
	.comm	_AV_CODEC_ID_MPEG4,8,3          ; @AV_CODEC_ID_MPEG4
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_VP8,8,3            ; @AV_CODEC_ID_VP8
	.comm	_AV_CODEC_ID_VP9,8,3            ; @AV_CODEC_ID_VP9
	.comm	_WORK_ENCX264,4,2               ; @WORK_ENCX264
	.comm	_WORK_ENCQSV,4,2                ; @WORK_ENCQSV
	.comm	_WORK_ENCTHEORA,4,2             ; @WORK_ENCTHEORA
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AV_CODEC_ID_HEVC,8,3           ; @AV_CODEC_ID_HEVC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown video codec (0x%x)"

	.comm	_WORK_ENCX265,4,2               ; @WORK_ENCX265
.subsections_via_symbols
