	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_select_audio_codec         ## -- Begin function ghb_select_audio_codec
	.p2align	4, 0x90
_ghb_select_audio_codec:                ## @ghb_select_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_HB_ACODEC_AUTO_PASS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.15:
	movl	%r12d, %edi
	movl	%r8d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_autopassthru_get_encoder    ## TAILCALL
LBB0_1:
	movl	%edx, %r14d
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_hb_audio_encoder_get_next
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, (%rax)
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, 4(%rax)
	jne	LBB0_16
## %bb.5:
	movl	%r15d, %edi
	callq	_hb_audio_encoder_get_default
	movl	%eax, %ebx
LBB0_6:
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	andl	%r14d, %r12d
	movq	_HB_ACODEC_PASS_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
LBB0_8:
	xorl	%edi, %edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rdi
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	callq	_hb_audio_encoder_get_next
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%r15d, 4(%rax)
	jne	LBB0_12
	jmp	LBB0_14
LBB0_13:
	movl	%r14d, %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_select_audio_codec         ; -- Begin function ghb_select_audio_codec
	.p2align	2
_ghb_select_audio_codec:                ; @ghb_select_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, x3
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HB_ACODEC_AUTO_PASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_ACODEC_AUTO_PASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x4
	mov	x2, x19
	mov	x3, x21
	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_autopassthru_get_encoder
LBB0_2:
	mov	x20, x2
	mov	x0, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_hb_audio_encoder_get_next
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0, #4]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.6:
	mov	x0, x21
	bl	_hb_audio_encoder_get_default
	mov	x19, x0
LBB0_7:
Lloh3:
	adrp	x8, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	and	w8, w20, w22
Lloh6:
	adrp	x9, _HB_ACODEC_PASS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HB_ACODEC_PASS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_14
LBB0_9:
	mov	x0, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	bl	_hb_audio_encoder_get_next
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x0, #4]
	tst	w8, w21
	b.ne	LBB0_10
	b	LBB0_14
LBB0_13:
	mov	x19, x20
LBB0_14:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
.subsections_via_symbols
