	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_sTER_chunk
_write_sTER_chunk:                      ## @write_sTER_chunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	l___const.write_sTER_chunk.sTER+16(%rip), %eax
	movl	%eax, -32(%rbp)
	movaps	l___const.write_sTER_chunk.sTER(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_STDERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_user_chunk_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movq	_user_chunk_data@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_png_write_chunk
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.write_sTER_chunk.sTER
l___const.write_sTER_chunk.sTER:
	.long	115                             ## 0x73
	.long	84                              ## 0x54
	.long	69                              ## 0x45
	.long	82                              ## 0x52
	.long	0                               ## 0x0

	.comm	_verbose,8,3                    ## @verbose
	.comm	_STDERR,4,2                     ## @STDERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n stereo mode = %d\n"

	.comm	_user_chunk_data,4,2            ## @user_chunk_data
	.no_dead_strip	_write_sTER_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_sTER_chunk
_write_sTER_chunk:                      ; @write_sTER_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.write_sTER_chunk.sTER@PAGE
Lloh4:
	add	x8, x8, l___const.write_sTER_chunk.sTER@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	w8, [x8, #16]
	str	w8, [sp, #16]
Lloh5:
	adrp	x8, _verbose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _STDERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _user_chunk_data@GOTPAGE
Lloh12:
	ldr	x8, [x8, _user_chunk_data@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh16:
	adrp	x2, _user_chunk_data@GOTPAGE
Lloh17:
	ldr	x2, [x2, _user_chunk_data@GOTPAGEOFF]
	mov	x1, sp
	mov	x0, x19
	mov	w3, #1
	bl	_png_write_chunk
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.write_sTER_chunk.sTER
l___const.write_sTER_chunk.sTER:
	.long	115                             ; 0x73
	.long	84                              ; 0x54
	.long	69                              ; 0x45
	.long	82                              ; 0x52
	.long	0                               ; 0x0

	.comm	_verbose,8,3                    ; @verbose
	.comm	_STDERR,4,2                     ; @STDERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n stereo mode = %d\n"

	.comm	_user_chunk_data,4,2            ; @user_chunk_data
	.no_dead_strip	_write_sTER_chunk
.subsections_via_symbols
