	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_resample_update       ## -- Begin function hb_audio_resample_update
	.p2align	4, 0x90
_hb_audio_resample_update:              ## @hb_audio_resample_update
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	cmpq	%rdx, 120(%rdi)
	jne	LBB0_5
## %bb.4:
	movq	128(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_5
## %bb.6:
	movq	136(%rbx), %rax
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	cmpq	24(%rbx), %rax
	setne	%cl
	movl	%ecx, (%rbx)
	je	LBB0_21
## %bb.7:
	cmpq	%rdx, 56(%rbx)
	je	LBB0_8
	jmp	LBB0_14
LBB0_5:
	movl	$1, (%rbx)
	cmpq	%rdx, 56(%rbx)
	jne	LBB0_14
LBB0_8:
	movq	64(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_14
## %bb.9:
	movq	72(%rbx), %rax
	cmpq	24(%rbx), %rax
	jne	LBB0_14
## %bb.10:
	movq	80(%rbx), %rax
	cmpq	32(%rbx), %rax
	jne	LBB0_14
## %bb.11:
	movq	88(%rbx), %rax
	cmpq	40(%rbx), %rax
	jne	LBB0_14
## %bb.12:
	movq	96(%rbx), %rax
	cmpq	48(%rbx), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%r15d, %r15d
	cmpq	$0, 112(%rbx)
	jne	LBB0_21
LBB0_14:
	leaq	112(%rbx), %r14
	movq	112(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_18
## %bb.15:
	xorl	%eax, %eax
	callq	_swr_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	120(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	112(%rbx), %rdi
	movq	128(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	112(%rbx), %rdi
	movq	136(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	112(%rbx), %rdi
	movq	144(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	112(%rbx), %rdi
	movq	152(%rbx), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_double
	movq	8(%rbx), %rdx
	movq	112(%rbx), %rdi
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	16(%rbx), %rdx
	movq	112(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	24(%rbx), %rdx
	movq	112(%rbx), %rdi
	leaq	L_.str.9(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movq	32(%rbx), %rdx
	movq	112(%rbx), %rdi
	leaq	L_.str.10(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_double
	movq	40(%rbx), %rdx
	movq	112(%rbx), %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_double
	movq	48(%rbx), %rdx
	movq	112(%rbx), %rdi
	leaq	L_.str.12(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_opt_set_double
	movq	112(%rbx), %rdi
	callq	_swr_init
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r12d
	leaq	-112(%rbp), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$63, %edx
	callq	_av_strerror
	leaq	L_.str.13(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_hb_error
	movq	%r14, %rdi
	callq	_swr_free
	movl	%r12d, %r15d
	jmp	LBB0_21
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_hb_error
	movl	$1, %r15d
	jmp	LBB0_21
LBB0_20:
	movups	8(%rbx), %xmm0
	movups	%xmm0, 56(%rbx)
	movq	24(%rbx), %rdi
	movq	%rdi, 72(%rbx)
	callq	_av_get_channel_layout_nb_channels
	movl	%eax, 104(%rbx)
	movups	32(%rbx), %xmm0
	movups	%xmm0, 80(%rbx)
	movq	48(%rbx), %rax
	movq	%rax, 96(%rbx)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_audio_resample_update: resample is NULL"

L_.str.1:                               ## @.str.1
	.asciz	"hb_audio_resample_update: swr_alloc() failed"

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

L_.str.3:                               ## @.str.3
	.asciz	"out_sample_rate"

L_.str.4:                               ## @.str.4
	.asciz	"out_channel_layout"

L_.str.5:                               ## @.str.5
	.asciz	"matrix_encoding"

L_.str.6:                               ## @.str.6
	.asciz	"rematrix_maxval"

L_.str.7:                               ## @.str.7
	.asciz	"in_sample_fmt"

L_.str.8:                               ## @.str.8
	.asciz	"in_sample_rate"

L_.str.9:                               ## @.str.9
	.asciz	"in_channel_layout"

L_.str.10:                              ## @.str.10
	.asciz	"lfe_mix_level"

L_.str.11:                              ## @.str.11
	.asciz	"center_mix_level"

L_.str.12:                              ## @.str.12
	.asciz	"surround_mix_level"

L_.str.13:                              ## @.str.13
	.asciz	"hb_audio_resample_update: swr_init() failed (%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_resample_update       ; -- Begin function hb_audio_resample_update
	.p2align	2
_hb_audio_resample_update:              ; @hb_audio_resample_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #120]
	ldr	x2, [x0, #8]
	cmp	x8, x2
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #128]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #136]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	cset	w8, ne
	str	w8, [x19]
	b.ne	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_21
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	ldr	x8, [x19, #56]
	cmp	x8, x2
	b.ne	LBB0_13
; %bb.7:
	ldr	x8, [x19, #64]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	ldr	x8, [x19, #72]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	ldr	x8, [x19, #80]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	ldr	x8, [x19, #88]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19, #96]
	ldr	x9, [x19, #48]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x19, #112]
	cbnz	x8, LBB0_4
LBB0_13:
	mov	x20, x19
	ldr	x0, [x20, #112]!
	cbnz	x0, LBB0_16
; %bb.14:
	bl	_swr_alloc
	str	x0, [x20]
	cbz	x0, LBB0_23
; %bb.15:
	ldr	x2, [x19, #120]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #128]
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #136]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #144]
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #152]
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_double
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #8]
LBB0_16:
Lloh13:
	adrp	x1, l_.str.7@PAGE
Lloh14:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #16]
Lloh15:
	adrp	x1, l_.str.8@PAGE
Lloh16:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #24]
Lloh17:
	adrp	x1, l_.str.9@PAGE
Lloh18:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #32]
Lloh19:
	adrp	x1, l_.str.10@PAGE
Lloh20:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_double
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #40]
Lloh21:
	adrp	x1, l_.str.11@PAGE
Lloh22:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_double
	ldr	x0, [x19, #112]
	ldr	x2, [x19, #48]
Lloh23:
	adrp	x1, l_.str.12@PAGE
Lloh24:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_double
	ldr	x0, [x19, #112]
	bl	_swr_init
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.17:
	add	x19, sp, #8
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #63
	bl	_av_strerror
	str	x19, [sp]
Lloh25:
	adrp	x0, l_.str.13@PAGE
Lloh26:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_hb_error
	mov	x0, x20
	bl	_swr_free
	b	LBB0_21
LBB0_18:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
LBB0_19:
	bl	_hb_error
	mov	w21, #1
	b	LBB0_21
LBB0_20:
	ldur	q0, [x19, #8]
	stur	q0, [x19, #56]
	ldr	x0, [x19, #24]
	str	x0, [x19, #72]
	bl	_av_get_channel_layout_nb_channels
	str	w0, [x19, #104]
	ldr	q0, [x19, #32]
	str	q0, [x19, #80]
	ldr	x8, [x19, #48]
	str	x8, [x19, #96]
LBB0_21:
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.22:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_audio_resample_update: resample is NULL"

l_.str.1:                               ; @.str.1
	.asciz	"hb_audio_resample_update: swr_alloc() failed"

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

l_.str.3:                               ; @.str.3
	.asciz	"out_sample_rate"

l_.str.4:                               ; @.str.4
	.asciz	"out_channel_layout"

l_.str.5:                               ; @.str.5
	.asciz	"matrix_encoding"

l_.str.6:                               ; @.str.6
	.asciz	"rematrix_maxval"

l_.str.7:                               ; @.str.7
	.asciz	"in_sample_fmt"

l_.str.8:                               ; @.str.8
	.asciz	"in_sample_rate"

l_.str.9:                               ; @.str.9
	.asciz	"in_channel_layout"

l_.str.10:                              ; @.str.10
	.asciz	"lfe_mix_level"

l_.str.11:                              ; @.str.11
	.asciz	"center_mix_level"

l_.str.12:                              ; @.str.12
	.asciz	"surround_mix_level"

l_.str.13:                              ; @.str.13
	.asciz	"hb_audio_resample_update: swr_init() failed (%s)"

.subsections_via_symbols
