	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_h264_profile
_apply_h264_profile:                    ## @apply_h264_profile
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	cmpl	$10, %r12d
	jne	LBB0_1
## %bb.2:
	movq	_hb_h264_profile_names_10bit@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_hb_h264_profile_names_8bit@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%r13, %r13
	je	LBB0_22
## %bb.4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:
	cmpq	$0, 24(%r14)
	jne	LBB0_7
## %bb.6:
	cmpq	$0, 16(%r14)
	je	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_hb_log
	movl	(%r15), %r12d
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:
	addl	%r12d, %r12d
	movq	(%r14), %rax
	movq	_X264_RC_CQP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_14
## %bb.13:
	cmpl	$0, 8(%r14)
	jle	LBB0_16
LBB0_14:
	movq	_X264_RC_CRF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_21
## %bb.15:
	leal	(%r12,%r12,2), %edx
	addl	$-48, %edx
	addl	12(%r14), %edx
	jg	LBB0_21
LBB0_16:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rdi
	callq	_hb_log
	movq	(%r14), %rax
	movq	(%rbx), %rcx
LBB0_18:
	cmpq	%rcx, %rax
	jne	LBB0_20
## %bb.19:
	movl	$1, 8(%r14)
	jmp	LBB0_21
LBB0_22:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	L_.str.4(%rip), %rdi
	callq	_hb_error
	movl	$-1, %eax
	jmp	LBB0_25
LBB0_23:
	xorl	%eax, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leal	(%r12,%r12,2), %eax
	movl	$49, %ecx
	subl	%eax, %ecx
	movl	%ecx, 12(%r14)
LBB0_21:
	movq	8(%r15), %rax
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hb_h264_profile_names_10bit,8,3 ## @hb_h264_profile_names_10bit
	.comm	_hb_h264_profile_names_8bit,8,3 ## @hb_h264_profile_names_8bit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"baseline"

L_.str.1:                               ## @.str.1
	.asciz	"apply_h264_profile [warning]: baseline profile doesn't support interlacing, disabling"

L_.str.2:                               ## @.str.2
	.asciz	"high444"

	.comm	_X264_RC_CQP,8,3                ## @X264_RC_CQP
	.comm	_X264_RC_CRF,8,3                ## @X264_RC_CRF
L_.str.3:                               ## @.str.3
	.asciz	"apply_h264_profile [warning]: lossless requires high444 profile, disabling"

L_.str.4:                               ## @.str.4
	.asciz	"apply_h264_profile: no profile specified"

	.no_dead_strip	_apply_h264_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_h264_profile
_apply_h264_profile:                    ; @apply_h264_profile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _hb_h264_profile_names_10bit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hb_h264_profile_names_10bit@GOTPAGEOFF]
Lloh2:
	adrp	x9, _hb_h264_profile_names_8bit@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hb_h264_profile_names_8bit@GOTPAGEOFF]
	cmp	w24, #10
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	x23, [x8]
	cbz	x2, LBB0_17
; %bb.1:
	mov	x22, x3
	mov	x20, x1
	mov	x21, x0
	mov	x0, x19
	mov	x1, x23
	bl	_strcasecmp
	cbz	x0, LBB0_17
; %bb.2:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbnz	x0, LBB0_8
; %bb.5:
	cbz	w22, LBB0_7
; %bb.6:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
	ldr	w24, [x21]
LBB0_7:
	stp	xzr, xzr, [x20, #16]
LBB0_8:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	x0, LBB0_21
; %bb.9:
	add	w8, w24, w24, lsl #1
	lsl	w23, w8, #1
	ldr	x8, [x20]
Lloh10:
	adrp	x24, _X264_RC_CQP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _X264_RC_CQP@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w10, [x20, #8]
	cmp	w10, #1
	b.lt	LBB0_13
LBB0_11:
Lloh12:
	adrp	x10, _X264_RC_CRF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _X264_RC_CRF@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_21
; %bb.12:
	sub	w10, w23, #48
	ldr	w11, [x20, #12]
	add	w10, w10, w11
	cmp	w10, #0
	b.gt	LBB0_21
LBB0_13:
	cbz	w22, LBB0_15
; %bb.14:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	ldr	x8, [x20]
	ldr	x9, [x24]
LBB0_15:
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_21
LBB0_17:
	mov	x0, x19
	mov	x1, x23
	bl	_strcasecmp
	cbz	x0, LBB0_19
; %bb.18:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_error
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w8, #49
	sub	w8, w8, w23
	str	w8, [x20, #12]
LBB0_21:
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_hb_h264_profile_names_10bit,8,3 ; @hb_h264_profile_names_10bit
	.comm	_hb_h264_profile_names_8bit,8,3 ; @hb_h264_profile_names_8bit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"baseline"

l_.str.1:                               ; @.str.1
	.asciz	"apply_h264_profile [warning]: baseline profile doesn't support interlacing, disabling"

l_.str.2:                               ; @.str.2
	.asciz	"high444"

	.comm	_X264_RC_CQP,8,3                ; @X264_RC_CQP
	.comm	_X264_RC_CRF,8,3                ; @X264_RC_CRF
l_.str.3:                               ; @.str.3
	.asciz	"apply_h264_profile [warning]: lossless requires high444 profile, disabling"

l_.str.4:                               ; @.str.4
	.asciz	"apply_h264_profile: no profile specified"

	.no_dead_strip	_apply_h264_profile
.subsections_via_symbols
