	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rpng
_test_rpng:                             ## @test_rpng
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movaps	l___const.test_rpng.test_data+48(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.test_rpng.test_data+32(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.test_rpng.test_data+16(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.test_rpng.test_data(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -112(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-96(%rbp), %rsi
	movl	$4, %edx
	movl	$4, %ecx
	movl	$16, %r8d
	callq	_rpng_save_image_argb
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-112(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	leaq	-100(%rbp), %rcx
	movq	%r14, %rdi
	callq	_rpng_load_image_argb
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	movl	-104(%rbp), %edx
	movl	-100(%rbp), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-112(%rbp), %rdi
	callq	_free
	jmp	LBB0_5
LBB0_1:
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	$2, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.test_rpng.test_data
l___const.test_rpng.test_data:
	.long	4278190160                      ## 0xff000050
	.long	4278190208                      ## 0xff000080
	.long	4278190144                      ## 0xff000040
	.long	4278190216                      ## 0xff000088
	.long	4278190160                      ## 0xff000050
	.long	4278190208                      ## 0xff000080
	.long	4278190144                      ## 0xff000040
	.long	4278190216                      ## 0xff000088
	.long	4278190275                      ## 0xff0000c3
	.long	4278190291                      ## 0xff0000d3
	.long	4278190275                      ## 0xff0000c3
	.long	4278190291                      ## 0xff0000d3
	.long	4278190275                      ## 0xff0000c3
	.long	4278190291                      ## 0xff0000d3
	.long	4278190275                      ## 0xff0000c3
	.long	4278190291                      ## 0xff0000d3

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/tmp/test.png"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Path: %s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Got image: %u x %u.\n"

	.no_dead_strip	_test_rpng
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rpng
_test_rpng:                             ; @test_rpng
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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]
Lloh3:
	adrp	x9, l___const.test_rpng.test_data@PAGE
Lloh4:
	add	x9, x9, l___const.test_rpng.test_data@PAGEOFF
	stur	x8, [x29, #-24]
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp, #32]
	ldp	q0, q1, [x9, #32]
	stp	q0, q1, [sp, #64]
	stp	xzr, xzr, [sp, #16]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #32
	mov	w2, #4
	mov	w3, #4
	mov	w4, #16
	bl	_rpng_save_image_argb
	cbz	w0, LBB0_3
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	mov	x0, x19
	bl	_rpng_load_image_argb
	cbz	w0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x20, _stderr@GOTPAGE
Lloh8:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
	ldp	w9, w8, [sp, #16]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x0, [sp, #24]
	bl	_free
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #2
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.test_rpng.test_data
l___const.test_rpng.test_data:
	.long	4278190160                      ; 0xff000050
	.long	4278190208                      ; 0xff000080
	.long	4278190144                      ; 0xff000040
	.long	4278190216                      ; 0xff000088
	.long	4278190160                      ; 0xff000050
	.long	4278190208                      ; 0xff000080
	.long	4278190144                      ; 0xff000040
	.long	4278190216                      ; 0xff000088
	.long	4278190275                      ; 0xff0000c3
	.long	4278190291                      ; 0xff0000d3
	.long	4278190275                      ; 0xff0000c3
	.long	4278190291                      ; 0xff0000d3
	.long	4278190275                      ; 0xff0000c3
	.long	4278190291                      ; 0xff0000d3
	.long	4278190275                      ; 0xff0000c3
	.long	4278190291                      ; 0xff0000d3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/tmp/test.png"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Path: %s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Got image: %u x %u.\n"

	.no_dead_strip	_test_rpng
.subsections_via_symbols
