	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_resample_set_channel_layout ## -- Begin function hb_audio_resample_set_channel_layout
	.p2align	4, 0x90
_hb_audio_resample_set_channel_layout:  ## @hb_audio_resample_set_channel_layout
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	movq	8(%rbx), %rax
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_is_mono
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r15), %r14
LBB0_6:
	movq	%r14, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,8,3 ## @AV_CH_LAYOUT_STEREO_DOWNMIX
	.comm	_AV_CH_LAYOUT_STEREO,8,3        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_MONO,8,3          ## @AV_CH_LAYOUT_MONO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_resample_set_channel_layout ; -- Begin function hb_audio_resample_set_channel_layout
	.p2align	2
_hb_audio_resample_set_channel_layout:  ; @hb_audio_resample_set_channel_layout
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	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, x0
Lloh0:
	adrp	x8, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	csel	x20, x9, x1, eq
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x21, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_is_mono
	ldr	x8, [x21]
	cmp	x0, #0
	csel	x20, x20, x8, eq
LBB0_3:
	str	x20, [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
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,8,3 ; @AV_CH_LAYOUT_STEREO_DOWNMIX
	.comm	_AV_CH_LAYOUT_STEREO,8,3        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_MONO,8,3          ; @AV_CH_LAYOUT_MONO
.subsections_via_symbols
