	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_job_setup_passes            ## -- Begin function hb_job_setup_passes
	.p2align	4, 0x90
_hb_job_setup_passes:                   ## @hb_job_setup_passes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_HB_INVALID_VIDEO_QUALITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	$0, 16(%rbx)
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_hb_deep_log
	movq	_HB_PASS_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_hb_add_internal
	movq	$0, 24(%rbx)
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_hb_deep_log
	movq	_HB_PASS_ENCODE_1ST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_hb_add_internal
	movq	_HB_PASS_ENCODE_2ND@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_HB_PASS_ENCODE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_add_internal                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_INVALID_VIDEO_QUALITY,8,3   ## @HB_INVALID_VIDEO_QUALITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding subtitle scan pass"

	.comm	_HB_PASS_SUBTITLE,4,2           ## @HB_PASS_SUBTITLE
L_.str.1:                               ## @.str.1
	.asciz	"Adding two-pass encode"

	.comm	_HB_PASS_ENCODE_1ST,4,2         ## @HB_PASS_ENCODE_1ST
	.comm	_HB_PASS_ENCODE_2ND,4,2         ## @HB_PASS_ENCODE_2ND
	.comm	_HB_PASS_ENCODE,4,2             ## @HB_PASS_ENCODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_job_setup_passes            ; -- Begin function hb_job_setup_passes
	.p2align	2
_hb_job_setup_passes:                   ; @hb_job_setup_passes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HB_INVALID_VIDEO_QUALITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_INVALID_VIDEO_QUALITY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	str	xzr, [x20, #16]
LBB0_2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_hb_deep_log
Lloh5:
	adrp	x8, _HB_PASS_SUBTITLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HB_PASS_SUBTITLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_hb_add_internal
	str	xzr, [x20, #24]
LBB0_4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_hb_deep_log
Lloh10:
	adrp	x8, _HB_PASS_ENCODE_1ST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HB_PASS_ENCODE_1ST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_hb_add_internal
Lloh13:
	adrp	x8, _HB_PASS_ENCODE_2ND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HB_PASS_ENCODE_2ND@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _HB_PASS_ENCODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HB_PASS_ENCODE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hb_add_internal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_INVALID_VIDEO_QUALITY,8,3   ; @HB_INVALID_VIDEO_QUALITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding subtitle scan pass"

	.comm	_HB_PASS_SUBTITLE,4,2           ; @HB_PASS_SUBTITLE
l_.str.1:                               ; @.str.1
	.asciz	"Adding two-pass encode"

	.comm	_HB_PASS_ENCODE_1ST,4,2         ; @HB_PASS_ENCODE_1ST
	.comm	_HB_PASS_ENCODE_2ND,4,2         ; @HB_PASS_ENCODE_2ND
	.comm	_HB_PASS_ENCODE,4,2             ; @HB_PASS_ENCODE
.subsections_via_symbols
