	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_handle_tEXt           ## -- Begin function png_push_handle_tEXt
	.p2align	4, 0x90
_png_push_handle_tEXt:                  ## @png_push_handle_tEXt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_PNG_HAVE_IEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
LBB0_3:
	leal	1(%r14), %esi
	movq	%rbx, %rdi
	callq	_png_malloc
	movq	%rax, 8(%rbx)
	movslq	%r14d, %rcx
	movb	$0, (%rax,%rcx)
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	%rcx, 40(%rbx)
	movq	%rcx, 32(%rbx)
	movq	_PNG_READ_tEXt_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
	.comm	_PNG_HAVE_IEND,4,2              ## @PNG_HAVE_IEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of place tEXt"

	.comm	_PNG_READ_tEXt_MODE,4,2         ## @PNG_READ_tEXt_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_handle_tEXt           ; -- Begin function png_push_handle_tEXt
	.p2align	2
_png_push_handle_tEXt:                  ; @png_push_handle_tEXt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _PNG_HAVE_IEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PNG_HAVE_IEND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_error
LBB0_3:
	add	w1, w20, #1
	mov	x0, x19
	bl	_png_malloc
	str	x0, [x19, #8]
	sxtw	x8, w20
	strb	wzr, [x0, x8]
	ldr	x9, [x19, #8]
	str	x9, [x19, #16]
	stp	x8, x8, [x19, #32]
Lloh8:
	adrp	x8, _PNG_READ_tEXt_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PNG_READ_tEXt_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
	.comm	_PNG_HAVE_IEND,4,2              ; @PNG_HAVE_IEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of place tEXt"

	.comm	_PNG_READ_tEXt_MODE,4,2         ; @PNG_READ_tEXt_MODE
.subsections_via_symbols
