	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sanitize_audio_codec
_sanitize_audio_codec:                  ## @sanitize_audio_codec
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	_HB_ACODEC_AUTO_PASS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%edx, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_hb_autopassthru_get_encoder
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movl	%esi, %ebx
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_5
## %bb.3:
	andl	%ebx, %edi
	movq	_HB_ACODEC_PASS_MASK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_hb_audio_encoder_get_fallback_for_passthru
	movq	_HB_ACODEC_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %r15d
	movl	%r15d, %ebx
LBB0_5:
	xorl	%edi, %edi
	callq	_hb_audio_encoder_get_next
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_HB_ACODEC_NONE@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rdi
	callq	_hb_audio_encoder_get_next
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%r15), %ebx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%r14d, 4(%rax)
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_hb_audio_encoder_get_default
	movl	%eax, %ebx
LBB0_12:
	movq	_HB_ACODEC_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.14:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_audio_encoder_get_default   ## TAILCALL
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ## @HB_ACODEC_AUTO_PASS
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.comm	_HB_ACODEC_PASS_MASK,4,2        ## @HB_ACODEC_PASS_MASK
	.comm	_HB_ACODEC_INVALID,4,2          ## @HB_ACODEC_INVALID
	.comm	_HB_ACODEC_NONE,4,2             ## @HB_ACODEC_NONE
	.no_dead_strip	_sanitize_audio_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sanitize_audio_codec
_sanitize_audio_codec:                  ; @sanitize_audio_codec
	.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, x4
	mov	x21, x3
Lloh0:
	adrp	x8, _HB_ACODEC_AUTO_PASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_ACODEC_AUTO_PASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _HB_ACODEC_INVALID@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HB_ACODEC_INVALID@GOTPAGEOFF]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x2
	mov	x2, x21
	mov	x3, x19
	bl	_hb_autopassthru_get_encoder
	mov	x20, x0
	b	LBB0_5
LBB0_2:
	mov	x20, x1
Lloh5:
	adrp	x8, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
	and	w8, w20, w0
Lloh8:
	adrp	x9, _HB_ACODEC_PASS_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HB_ACODEC_PASS_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_hb_audio_encoder_get_fallback_for_passthru
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w20, w21, w0, eq
LBB0_5:
	mov	x0, #0
	bl	_hb_audio_encoder_get_next
	cbz	x0, LBB0_11
; %bb.6:
Lloh11:
	adrp	x21, _HB_ACODEC_NONE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HB_ACODEC_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_hb_audio_encoder_get_next
	cbz	x0, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0]
	ldr	w9, [x21]
	cmp	w8, w20
	ccmp	w20, w9, #4, eq
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0, #4]
	tst	w8, w19
	b.ne	LBB0_7
; %bb.10:
	mov	x0, x19
	bl	_hb_audio_encoder_get_default
	mov	x20, x0
LBB0_11:
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, 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_audio_encoder_get_default
LBB0_13:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ; @HB_ACODEC_AUTO_PASS
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.comm	_HB_ACODEC_PASS_MASK,4,2        ; @HB_ACODEC_PASS_MASK
	.comm	_HB_ACODEC_INVALID,4,2          ; @HB_ACODEC_INVALID
	.comm	_HB_ACODEC_NONE,4,2             ; @HB_ACODEC_NONE
	.no_dead_strip	_sanitize_audio_codec
.subsections_via_symbols
