	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopus_write_header
_libopus_write_header:                  ## @libopus_write_header
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)
	movl	8(%rdi), %r13d
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_bytestream_put_buffer
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bytestream_put_byte
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_bytestream_put_byte
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_bytestream_put_le16
	movl	12(%r15), %esi
	movq	%r14, %rdi
	callq	_bytestream_put_le32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_le16
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bytestream_put_byte
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_bytestream_put_byte
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bytestream_put_byte
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_bytestream_put_buffer
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpusHead"

	.no_dead_strip	_libopus_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopus_write_header
_libopus_write_header:                  ; @libopus_write_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x8, [x0]
	str	x8, [sp, #8]
	ldr	w20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_bytestream_put_buffer
	add	x0, sp, #8
	mov	w1, #1
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	x1, x20
	bl	_bytestream_put_byte
	ldr	w1, [x24, #16]
	add	x0, sp, #8
	bl	_bytestream_put_le16
	ldr	w1, [x24, #12]
	add	x0, sp, #8
	bl	_bytestream_put_le32
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_le16
	add	x0, sp, #8
	mov	x1, x23
	bl	_bytestream_put_byte
	cbz	w23, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, x22
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	x1, x21
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_bytestream_put_buffer
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpusHead"

	.no_dead_strip	_libopus_write_header
.subsections_via_symbols
