	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function audio_to_package
LCPI0_0:
	.long	8205                            ## 0x200d
	.long	0                               ## 0x0
	.long	36866                           ## 0x9002
	.long	0                               ## 0x0
LCPI0_1:
	.long	36866                           ## 0x9002
	.long	0                               ## 0x0
	.long	36913                           ## 0x9031
	.long	0                               ## 0x0
LCPI0_2:
	.long	36914                           ## 0x9032
	.long	0                               ## 0x0
	.long	36915                           ## 0x9033
	.long	0                               ## 0x0
LCPI0_3:
	.long	36916                           ## 0x9034
	.long	0                               ## 0x0
	.long	36917                           ## 0x9035
	.long	0                               ## 0x0
LCPI0_4:
	.long	36918                           ## 0x9036
	.long	0                               ## 0x0
	.long	36919                           ## 0x9037
	.long	0                               ## 0x0
LCPI0_5:
	.long	8197                            ## 0x2005
	.long	0                               ## 0x0
	.long	36929                           ## 0x9041
	.long	0                               ## 0x0
LCPI0_6:
	.long	36930                           ## 0x9042
	.long	256                             ## 0x100
	.long	36931                           ## 0x9043
	.long	0                               ## 0x0
LCPI0_7:
	.long	36932                           ## 0x9044
	.long	16                              ## 0x10
	.long	36933                           ## 0x9045
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_audio_to_package:                      ## @audio_to_package
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$272, %rsp                      ## imm = 0x110
	movl	%edx, %ecx
	movq	%rsi, %r8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -8(%rbp)
	movq	(%rdi), %rdx
	movq	_GO7007_AUDIO_I2S_MASTER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movl	(%rdx), %edi
	xorl	%eax, %eax
	testl	%edi, %r10d
	setne	%al
	shll	$11, %eax
	movq	_GO7007_AUDIO_OKI_MODE@GOTPCREL(%rip), %r9
	xorl	%esi, %esi
	andl	(%r9), %edi
	movl	4(%rdx), %edi
	setne	%sil
	shll	$8, %esi
	orl	%eax, %esi
	leal	3(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-4, %eax
	leal	-16(,%rax,4), %eax
	movl	8(%rdx), %edi
	decl	%edi
	orl	%eax, %edi
	orl	%esi, %edi
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [8205,0,36866,0]
	movaps	%xmm0, -272(%rbp)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [36866,0,36913,0]
	movaps	%xmm0, -256(%rbp)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [36914,0,36915,0]
	movaps	%xmm0, -240(%rbp)
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [36916,0,36917,0]
	movaps	%xmm0, -224(%rbp)
	movaps	LCPI0_4(%rip), %xmm0            ## xmm0 = [36918,0,36919,0]
	movaps	%xmm0, -208(%rbp)
	movq	$36928, -192(%rbp)              ## imm = 0x9040
	movl	$36864, -184(%rbp)              ## imm = 0x9000
	movl	%edi, -180(%rbp)
	movl	$36865, -176(%rbp)              ## imm = 0x9001
	movzwl	(%rdx), %eax
	orl	$512, %eax                      ## imm = 0x200
	movl	%eax, -172(%rbp)
	movl	$36864, -168(%rbp)              ## imm = 0x9000
	xorl	%eax, %eax
	andl	(%rdx), %r10d
	setne	%al
	shll	$10, %eax
	orl	%edi, %eax
	movl	%eax, -164(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -160(%rbp)
	movaps	LCPI0_5(%rip), %xmm1            ## xmm1 = [8197,0,36929,0]
	movaps	%xmm1, -144(%rbp)
	movaps	LCPI0_6(%rip), %xmm1            ## xmm1 = [36930,256,36931,0]
	movaps	%xmm1, -128(%rbp)
	movaps	LCPI0_7(%rip), %xmm1            ## xmm1 = [36932,16,36933,16]
	movaps	%xmm1, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -32(%rbp)
	leaq	-272(%rbp), %rsi
	movq	%r8, %rdi
	movl	$2, %edx
	callq	_copy_packages
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GO7007_AUDIO_I2S_MASTER,4,2    ## @GO7007_AUDIO_I2S_MASTER
	.comm	_GO7007_AUDIO_OKI_MODE,4,2      ## @GO7007_AUDIO_OKI_MODE
	.no_dead_strip	_audio_to_package
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function audio_to_package
lCPI0_0:
	.long	8205                            ; 0x200d
	.long	0                               ; 0x0
	.long	36866                           ; 0x9002
	.long	0                               ; 0x0
lCPI0_1:
	.long	36866                           ; 0x9002
	.long	0                               ; 0x0
	.long	36913                           ; 0x9031
	.long	0                               ; 0x0
lCPI0_2:
	.long	36914                           ; 0x9032
	.long	0                               ; 0x0
	.long	36915                           ; 0x9033
	.long	0                               ; 0x0
lCPI0_3:
	.long	36916                           ; 0x9034
	.long	0                               ; 0x0
	.long	36917                           ; 0x9035
	.long	0                               ; 0x0
lCPI0_4:
	.long	36918                           ; 0x9036
	.long	0                               ; 0x0
	.long	36919                           ; 0x9037
	.long	0                               ; 0x0
lCPI0_6:
	.long	8197                            ; 0x2005
	.long	0                               ; 0x0
	.long	36929                           ; 0x9041
	.long	0                               ; 0x0
lCPI0_7:
	.long	36930                           ; 0x9042
	.long	256                             ; 0x100
	.long	36931                           ; 0x9043
	.long	0                               ; 0x0
lCPI0_8:
	.long	36932                           ; 0x9044
	.long	16                              ; 0x10
	.long	36933                           ; 0x9045
	.long	16                              ; 0x10
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_5:
	.long	36928                           ; 0x9040
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_audio_to_package:                      ; @audio_to_package
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w27, -24
	.cfi_offset w28, -32
	mov	x3, x2
	mov	x8, x1
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-24]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _GO7007_AUDIO_I2S_MASTER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GO7007_AUDIO_I2S_MASTER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldp	w11, w12, [x9]
	tst	w10, w11
Lloh6:
	adrp	x13, _GO7007_AUDIO_OKI_MODE@GOTPAGE
Lloh7:
	ldr	x13, [x13, _GO7007_AUDIO_OKI_MODE@GOTPAGEOFF]
	cset	w14, ne
Lloh8:
	ldr	w13, [x13]
	tst	w13, w11
	lsl	w11, w14, #11
	cset	w13, ne
	bfi	w11, w13, #8, #1
	add	w13, w12, #3
	cmp	w12, #0
	csel	w12, w13, w12, lt
	lsl	w12, w12, #2
	and	w12, w12, #0xfffffff0
	sub	w12, w12, #16
	ldr	w13, [x9, #8]
	sub	w13, w13, #1
	orr	w11, w11, w13
	orr	w11, w11, w12
Lloh9:
	adrp	x12, lCPI0_0@PAGE
Lloh10:
	ldr	q0, [x12, lCPI0_0@PAGEOFF]
Lloh11:
	adrp	x12, lCPI0_1@PAGE
Lloh12:
	ldr	q1, [x12, lCPI0_1@PAGEOFF]
	stp	q0, q1, [sp]
Lloh13:
	adrp	x12, lCPI0_2@PAGE
Lloh14:
	ldr	q0, [x12, lCPI0_2@PAGEOFF]
Lloh15:
	adrp	x12, lCPI0_3@PAGE
Lloh16:
	ldr	q1, [x12, lCPI0_3@PAGEOFF]
	stp	q0, q1, [sp, #32]
Lloh17:
	adrp	x12, lCPI0_4@PAGE
Lloh18:
	ldr	q0, [x12, lCPI0_4@PAGEOFF]
	str	q0, [sp, #64]
Lloh19:
	adrp	x12, lCPI0_5@PAGE
Lloh20:
	ldr	d0, [x12, lCPI0_5@PAGEOFF]
	str	d0, [sp, #80]
	mov	w12, #36864
	stp	w12, w11, [sp, #88]
	mov	w13, #36865
	str	w13, [sp, #96]
	ldr	w13, [x9]
	and	w13, w13, #0xffff
	orr	w13, w13, #0x200
	stp	w13, w12, [sp, #100]
	ldr	w9, [x9]
	tst	w9, w10
	cset	w9, ne
	orr	w9, w11, w9, lsl #10
	str	w9, [sp, #108]
	stp	xzr, xzr, [sp, #112]
Lloh21:
	adrp	x9, lCPI0_6@PAGE
Lloh22:
	ldr	q0, [x9, lCPI0_6@PAGEOFF]
Lloh23:
	adrp	x9, lCPI0_7@PAGE
Lloh24:
	ldr	q1, [x9, lCPI0_7@PAGEOFF]
	stp	q0, q1, [sp, #128]
Lloh25:
	adrp	x9, lCPI0_8@PAGE
Lloh26:
	ldr	q0, [x9, lCPI0_8@PAGEOFF]
	movi.2d	v1, #0000000000000000
	stp	q0, q1, [sp, #160]
	stp	q1, q1, [sp, #192]
	stp	q1, q1, [sp, #224]
	mov	x1, sp
	mov	x0, x8
	mov	w2, #2
	bl	_copy_packages
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpAdrp	Lloh23, Lloh25
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpAdrp	Lloh17, Lloh19
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GO7007_AUDIO_I2S_MASTER,4,2    ; @GO7007_AUDIO_I2S_MASTER
	.comm	_GO7007_AUDIO_OKI_MODE,4,2      ; @GO7007_AUDIO_OKI_MODE
	.no_dead_strip	_audio_to_package
.subsections_via_symbols
