	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_insert
_find_insert:                           ## @find_insert
	.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
	movl	$4112, %eax                     ## imm = 0x1010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %eax
	movl	%eax, %ecx
	andl	$-33, %ecx
	shll	$24, %ecx
	addl	$-1073741825, %ecx              ## imm = 0xBFFFFFFF
	cmpl	$452984830, %ecx                ## imm = 0x1AFFFFFE
	ja	LBB0_5
## %bb.1:
	movl	4(%r14), %ecx
	movl	%ecx, %edx
	andl	$-33, %edx
	shll	$24, %edx
	addl	$-1073741825, %edx              ## imm = 0xBFFFFFFF
	cmpl	$452984830, %edx                ## imm = 0x1AFFFFFE
	ja	LBB0_5
## %bb.2:
	movl	8(%r14), %edx
	movl	%edx, %edi
	andl	$-33, %edi
	shll	$24, %edi
	addl	$-1073741825, %edi              ## imm = 0xBFFFFFFF
	cmpl	$452984830, %edi                ## imm = 0x1AFFFFFE
	ja	LBB0_5
## %bb.3:
	movl	12(%r14), %ebx
	movl	%ebx, %edi
	andl	$-33, %edi
	shll	$24, %edi
	addl	$-1073741825, %edi              ## imm = 0xBFFFFFFF
	cmpl	$452984830, %edi                ## imm = 0x1AFFFFFE
	ja	LBB0_5
## %bb.4:
	cmpl	$0, 16(%r14)
	jne	LBB0_5
## %bb.7:
	shll	$8, %eax
	addl	%eax, %ecx
	shll	$8, %ecx
	addl	%ecx, %edx
	shll	$8, %edx
	addl	%edx, %ebx
	leaq	-4128(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_find_parameters
	cmpl	$1933723987, %ebx               ## imm = 0x73424953
	jg	LBB0_13
## %bb.8:
	cmpl	$1749635924, %ebx               ## imm = 0x68495354
	je	LBB0_23
## %bb.9:
	cmpl	$1766015824, %ebx               ## imm = 0x69434350
	je	LBB0_18
## %bb.10:
	cmpl	$1767135348, %ebx               ## imm = 0x69545874
	jne	LBB0_28
## %bb.11:
	cmpl	$4, %eax
	jne	LBB0_29
## %bb.12:
	movq	_insert_iTXt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4128(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_make_insert
	jmp	LBB0_30
LBB0_13:
	cmpl	$1933723988, %ebx               ## imm = 0x73424954
	je	LBB0_26
## %bb.14:
	cmpl	$1950701684, %ebx               ## imm = 0x74455874
	je	LBB0_21
## %bb.15:
	cmpl	$2052348020, %ebx               ## imm = 0x7A545874
	jne	LBB0_28
## %bb.16:
	cmpl	$2, %eax
	jne	LBB0_29
## %bb.17:
	movq	_insert_zTXt@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_23:
	cmpl	$256, %eax                      ## imm = 0x100
	jg	LBB0_29
## %bb.24:
	movq	_insert_hIST@GOTPCREL(%rip), %rcx
	jmp	LBB0_25
LBB0_18:
	cmpl	$2, %eax
	jne	LBB0_29
## %bb.19:
	movq	_insert_iCCP@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_26:
	cmpl	$4, %eax
	jg	LBB0_29
## %bb.27:
	movq	_insert_sBIT@GOTPCREL(%rip), %rcx
LBB0_25:
	movl	(%rcx), %esi
	leaq	-4128(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_make_insert
	jmp	LBB0_30
LBB0_21:
	cmpl	$2, %eax
	jne	LBB0_29
## %bb.22:
	movq	_insert_tEXt@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	leaq	-4128(%rbp), %rcx
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_make_insert
	jmp	LBB0_30
LBB0_29:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bad_parameter_count
	xorl	%eax, %eax
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_32
## %bb.31:
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%r14, %rdx
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_32:
	callq	___stack_chk_fail
LBB0_28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"makepng --insert \"%s\": invalid chunk name\n"

	.comm	_insert_iCCP,4,2                ## @insert_iCCP
	.comm	_insert_tEXt,4,2                ## @insert_tEXt
	.comm	_insert_zTXt,4,2                ## @insert_zTXt
	.comm	_insert_iTXt,4,2                ## @insert_iTXt
	.comm	_insert_hIST,4,2                ## @insert_hIST
	.comm	_insert_sBIT,4,2                ## @insert_sBIT
L_.str.1:                               ## @.str.1
	.asciz	"makepng --insert \"%s\": unrecognized chunk name\n"

	.comm	_insert_sPLT,4,2                ## @insert_sPLT
	.no_dead_strip	_find_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_insert
_find_insert:                           ; @find_insert
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w9, #452984831
	ldr	w8, [x0]
	lsl	w10, w8, #24
	and	w10, w10, #0xdfffffff
	mov	w11, #-1073741825
	add	w10, w10, w11
	cmp	w10, w9
	b.hs	LBB0_28
; %bb.1:
	mov	w12, #-553648128
	ldr	w10, [x19, #4]
	and	w13, w12, w10, lsl #24
	add	w11, w13, w11
	cmp	w11, w9
	b.hs	LBB0_28
; %bb.2:
	ldr	w11, [x19, #8]
	and	w13, w12, w11, lsl #24
	mov	w14, #-1073741825
	add	w13, w13, w14
	cmp	w13, w9
	b.hs	LBB0_28
; %bb.3:
	ldr	w13, [x19, #12]
	and	w12, w12, w13, lsl #24
	add	w12, w12, w14
	cmp	w12, w9
	b.hs	LBB0_28
; %bb.4:
	ldr	w9, [x19, #16]
	cbnz	w9, LBB0_28
; %bb.5:
	add	w8, w10, w8, lsl #8
	add	w8, w11, w8, lsl #8
	add	w20, w13, w8, lsl #8
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1024
	bl	_find_parameters
	mov	x2, x0
	mov	w8, #18771
	movk	w8, #29506, lsl #16
	cmp	w20, w8
	b.gt	LBB0_11
; %bb.6:
	mov	w8, #21332
	movk	w8, #26697, lsl #16
	cmp	w20, w8
	b.eq	LBB0_16
; %bb.7:
	mov	w8, #17232
	movk	w8, #26947, lsl #16
	cmp	w20, w8
	b.eq	LBB0_18
; %bb.8:
	mov	w8, #22644
	movk	w8, #26964, lsl #16
	cmp	w20, w8
	b.ne	LBB0_31
; %bb.9:
	cmp	w2, #4
	b.ne	LBB0_25
; %bb.10:
Lloh5:
	adrp	x8, _insert_iTXt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _insert_iTXt@GOTPAGEOFF]
	b	LBB0_24
LBB0_11:
	mov	w8, #18772
	movk	w8, #29506, lsl #16
	cmp	w20, w8
	b.eq	LBB0_20
; %bb.12:
	mov	w8, #22644
	movk	w8, #29765, lsl #16
	cmp	w20, w8
	b.eq	LBB0_22
; %bb.13:
	mov	w8, #22644
	movk	w8, #31316, lsl #16
	cmp	w20, w8
	b.ne	LBB0_31
; %bb.14:
	cmp	w2, #2
	b.ne	LBB0_25
; %bb.15:
Lloh7:
	adrp	x8, _insert_zTXt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _insert_zTXt@GOTPAGEOFF]
	b	LBB0_24
LBB0_16:
	cmp	w2, #256
	b.gt	LBB0_25
; %bb.17:
Lloh9:
	adrp	x8, _insert_hIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _insert_hIST@GOTPAGEOFF]
	b	LBB0_24
LBB0_18:
	cmp	w2, #2
	b.ne	LBB0_25
; %bb.19:
Lloh11:
	adrp	x8, _insert_iCCP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _insert_iCCP@GOTPAGEOFF]
	b	LBB0_24
LBB0_20:
	cmp	w2, #4
	b.gt	LBB0_25
; %bb.21:
Lloh13:
	adrp	x8, _insert_sBIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _insert_sBIT@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
	cmp	w2, #2
	b.ne	LBB0_25
; %bb.23:
Lloh15:
	adrp	x8, _insert_tEXt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _insert_tEXt@GOTPAGEOFF]
LBB0_24:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_make_insert
	b	LBB0_26
LBB0_25:
	mov	x0, x19
	mov	x1, x2
	bl	_bad_parameter_count
	mov	x0, #0
LBB0_26:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.27:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_28:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
LBB0_29:
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_30:
	bl	___stack_chk_fail
LBB0_31:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"makepng --insert \"%s\": invalid chunk name\n"

	.comm	_insert_iCCP,4,2                ; @insert_iCCP
	.comm	_insert_tEXt,4,2                ; @insert_tEXt
	.comm	_insert_zTXt,4,2                ; @insert_zTXt
	.comm	_insert_iTXt,4,2                ; @insert_iTXt
	.comm	_insert_hIST,4,2                ; @insert_hIST
	.comm	_insert_sBIT,4,2                ; @insert_sBIT
l_.str.1:                               ; @.str.1
	.asciz	"makepng --insert \"%s\": unrecognized chunk name\n"

	.comm	_insert_sPLT,4,2                ; @insert_sPLT
	.no_dead_strip	_find_insert
.subsections_via_symbols
