	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_sig                  ## -- Begin function png_write_sig
	.p2align	4, 0x90
_png_write_sig:                         ## @png_write_sig
	.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
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movaps	l___const.png_write_sig.png_signature+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.png_write_sig.png_signature(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	(%rdi), %rax
	leaq	-48(,%rax,4), %rsi
	addq	%rbp, %rsi
	movl	$8, %edx
	subq	%rax, %rdx
	callq	_png_write_data
	cmpq	$2, (%rbx)
	ja	LBB0_2
## %bb.1:
	movq	_PNG_HAVE_PNG_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_2:
	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.png_write_sig.png_signature
l___const.png_write_sig.png_signature:
	.long	137                             ## 0x89
	.long	80                              ## 0x50
	.long	78                              ## 0x4e
	.long	71                              ## 0x47
	.long	13                              ## 0xd
	.long	10                              ## 0xa
	.long	26                              ## 0x1a
	.long	10                              ## 0xa

	.comm	_PNG_HAVE_PNG_SIGNATURE,4,2     ## @PNG_HAVE_PNG_SIGNATURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_sig                  ; -- Begin function png_write_sig
	.p2align	2
_png_write_sig:                         ; @png_write_sig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, l___const.png_write_sig.png_signature@PAGE
Lloh4:
	add	x8, x8, l___const.png_write_sig.png_signature@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	x8, [x0]
	mov	x9, sp
	add	x1, x9, x8, lsl #2
	mov	w9, #8
	sub	x2, x9, x8
	bl	_png_write_data
	ldr	x8, [x19]
	cmp	x8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PNG_HAVE_PNG_SIGNATURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PNG_HAVE_PNG_SIGNATURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.png_write_sig.png_signature
l___const.png_write_sig.png_signature:
	.long	137                             ; 0x89
	.long	80                              ; 0x50
	.long	78                              ; 0x4e
	.long	71                              ; 0x47
	.long	13                              ; 0xd
	.long	10                              ; 0xa
	.long	26                              ; 0x1a
	.long	10                              ; 0xa

	.comm	_PNG_HAVE_PNG_SIGNATURE,4,2     ; @PNG_HAVE_PNG_SIGNATURE
.subsections_via_symbols
