	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_waveformatex
_asf_read_waveformatex:                 ## @asf_read_waveformatex
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	callq	_ASF_READ_U16
	movq	%rax, %rdi
	callq	_waveformat_to_codec
	movq	(%r14), %rcx
	movl	%eax, 24(%rcx)
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASF_READ_U16
	movq	(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 24(%rcx)
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASF_READ_U32
	movq	(%r14), %rcx
	movq	16(%rcx), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASF_READ_U32
	shll	$3, %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASF_READ_U16
	movq	(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 16(%rcx)
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASF_READ_U16
	movq	(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 8(%rcx)
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ASF_READ_U16
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CHECK_POINT
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, %r12
	jle	LBB0_5
## %bb.3:
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ASF_EXTRADATA_MAX@GOTPCREL(%rip), %r13
	cmpq	%r12, (%r13)
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_LOG_DEBUG
	movq	(%r13), %r12
LBB0_7:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movl	%edx, 4(%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_ASF_READ_BYTES
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Codec ID"

L_.str.1:                               ## @.str.1
	.asciz	"Number of Channels"

L_.str.2:                               ## @.str.2
	.asciz	"Samples per Second"

L_.str.3:                               ## @.str.3
	.asciz	"Average Number of Bytes Per Second"

L_.str.4:                               ## @.str.4
	.asciz	"Block Alignment"

L_.str.5:                               ## @.str.5
	.asciz	"Bits Per Sample"

L_.str.6:                               ## @.str.6
	.asciz	"Codec Specific Data Size"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_ASF_EXTRADATA_MAX,8,3          ## @ASF_EXTRADATA_MAX
L_.str.7:                               ## @.str.7
	.asciz	"extradata truncated"

	.no_dead_strip	_asf_read_waveformatex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_waveformatex
_asf_read_waveformatex:                 ; @asf_read_waveformatex
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_ASF_READ_U16
	bl	_waveformat_to_codec
	ldr	x8, [x20]
	str	w0, [x8, #24]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ASF_READ_U16
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	str	x0, [x8, #24]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ASF_READ_U32
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	str	w0, [x8]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ASF_READ_U32
	lsl	w8, w0, #3
	ldr	x9, [x20]
	str	w8, [x9]
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ASF_READ_U16
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	str	x0, [x8, #16]
Lloh10:
	adrp	x2, l_.str.5@PAGE
Lloh11:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ASF_READ_U16
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	str	x0, [x8, #8]
Lloh12:
	adrp	x2, l_.str.6@PAGE
Lloh13:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ASF_READ_U16
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_CHECK_POINT
	cbz	x22, LBB0_3
; %bb.1:
	cmp	x22, x21
	b.le	LBB0_5
; %bb.2:
Lloh14:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh18:
	adrp	x23, _ASF_EXTRADATA_MAX@GOTPAGE
Lloh19:
	ldr	x23, [x23, _ASF_EXTRADATA_MAX@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x22
	b.ge	LBB0_7
; %bb.6:
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	ldr	x22, [x23]
LBB0_7:
	ldp	x9, x8, [x20]
	ldr	x8, [x8]
	ldr	w2, [x8]
	str	w2, [x9, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_ASF_READ_BYTES
	ldr	x8, [x20]
	str	w0, [x8, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_STREAM_STATUS
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Codec ID"

l_.str.1:                               ; @.str.1
	.asciz	"Number of Channels"

l_.str.2:                               ; @.str.2
	.asciz	"Samples per Second"

l_.str.3:                               ; @.str.3
	.asciz	"Average Number of Bytes Per Second"

l_.str.4:                               ; @.str.4
	.asciz	"Block Alignment"

l_.str.5:                               ; @.str.5
	.asciz	"Bits Per Sample"

l_.str.6:                               ; @.str.6
	.asciz	"Codec Specific Data Size"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_ASF_EXTRADATA_MAX,8,3          ; @ASF_EXTRADATA_MAX
l_.str.7:                               ; @.str.7
	.asciz	"extradata truncated"

	.no_dead_strip	_asf_read_waveformatex
.subsections_via_symbols
