	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_write_ihdr_string
_png_write_ihdr_string:                 ## @png_write_ihdr_string
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movabsq	$5927942488704692272, %rax      ## imm = 0x5244484930303030
	movq	%rax, -80(%rbp)
	leaq	-72(%rbp), %r15
	leaq	-68(%rbp), %r12
	movq	$0, -72(%rbp)
	movb	(%rsi), %al
	movb	%al, -64(%rbp)
	movb	1(%rsi), %al
	movb	%al, -63(%rbp)
	movb	2(%rsi), %al
	movb	%al, -62(%rbp)
	movb	3(%rsi), %al
	movb	%al, -61(%rbp)
	movb	4(%rsi), %al
	movb	%al, -60(%rbp)
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$13, %esi
	callq	_dword_write_be
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_dword_write_be
	movl	12(%rbx), %esi
	movq	%r12, %rdi
	callq	_dword_write_be
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$21, %edx
	callq	_intfstream_write
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$21, %ecx
	jne	LBB0_2
## %bb.1:
	leaq	-76(%rbp), %rsi
	movq	%r14, %rdi
	movl	$17, %edx
	callq	_png_write_crc_string
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_png_write_ihdr_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_write_ihdr_string
_png_write_ihdr_string:                 ; @png_write_ihdr_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	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]
	mov	x23, sp
	mov	x8, #3472328296227680304
	movk	x8, #18505, lsl #32
	movk	x8, #21060, lsl #48
	add	x21, x23, #8
	add	x22, x23, #12
	stp	x8, xzr, [sp]
	ldrb	w8, [x1]
	strb	w8, [sp, #16]
	ldur	w8, [x1, #1]
	stur	w8, [sp, #17]
	mov	x0, sp
	mov	w1, #13
	bl	_dword_write_be
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_dword_write_be
	ldr	w1, [x20, #12]
	mov	x0, x22
	bl	_dword_write_be
	mov	x1, sp
	mov	x0, x19
	mov	w2, #21
	bl	_intfstream_write
	cmp	w0, #21
	b.ne	LBB0_2
; %bb.1:
	add	x1, x23, #4
	mov	x0, x19
	mov	w2, #17
	bl	_png_write_crc_string
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_png_write_ihdr_string
.subsections_via_symbols
