	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_display
_update_display:                        ## @update_display
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	88(%rdi), %rsi
	leaq	L_.str(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_read_png
	movq	56(%r12), %r14
	movq	72(%r12), %r15
	movq	%r15, 80(%r12)
	movq	$0, 72(%r12)
	movq	%r14, 64(%r12)
	movq	$0, 56(%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_png_get_rowbytes
	movl	%eax, 48(%r12)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_LIBPNG_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_display_log
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$-1, %edx
	callq	_png_get_valid
	movl	%eax, (%r12)
	movq	_PNG_INFO_IDAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_LIBPNG_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_display_log
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_png_get_rows
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_LIBPNG_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	callq	_display_log
LBB0_6:
	leaq	36(%r12), %rdx
	leaq	32(%r12), %rcx
	leaq	4(%r12), %r8
	leaq	8(%r12), %r9
	leaq	28(%r12), %r10
	leaq	24(%r12), %rbx
	leaq	20(%r12), %rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_png_get_IHDR
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_LIBPNG_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	callq	_display_log
LBB0_8:
	movq	_TTABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	(%r12), %r10d
	movl	4(%r12), %r8d
	movl	8(%r12), %r11d
	movq	_transform_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_TRANSFORM_R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	shlq	$5, %rax
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%rdx,%rsi), %ecx
	andl	%r14d, %ecx
	cmovel	%ecx, %ebx
	orl	%ebx, %edi
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$32, %rsi
	cmpq	%rsi, %rax
	je	LBB0_21
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rdx,%rsi)
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rdx,%rsi), %ebx
	movl	4(%rdx,%rsi), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	andl	%r10d, %ecx
	je	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r11d, %ecx
	notl	%ecx
	testl	%ecx, 8(%rdx,%rsi)
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r11d, 12(%rdx,%rsi)
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r8d, 16(%rdx,%rsi)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r14d, 20(%rdx,%rsi)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	orl	%ebx, %r9d
	jmp	LBB0_20
LBB0_9:
	xorl	%edi, %edi
	xorl	%r9d, %r9d
LBB0_21:
	movl	%r9d, %eax
	notl	%eax
	andl	%edi, %eax
	movl	%r9d, 12(%r12)
	movl	%eax, 16(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"original read"

	.comm	_LIBPNG_BUG,4,2                 ## @LIBPNG_BUG
L_.str.1:                               ## @.str.1
	.asciz	"png_get_rowbytes returned 0"

	.comm	_PNG_INFO_IDAT,4,2              ## @PNG_INFO_IDAT
L_.str.2:                               ## @.str.2
	.asciz	"png_read_png did not set IDAT flag"

L_.str.3:                               ## @.str.3
	.asciz	"png_read_png did not create row buffers"

L_.str.4:                               ## @.str.4
	.asciz	"png_get_IHDR failed"

	.comm	_TTABLE_SIZE,4,2                ## @TTABLE_SIZE
	.comm	_transform_info,8,3             ## @transform_info
	.comm	_TRANSFORM_R,4,2                ## @TRANSFORM_R
	.no_dead_strip	_update_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_display
_update_display:                        ; @update_display
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	add	x1, x0, #88
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #0
	bl	_read_png
	ldr	x20, [x19, #72]
	stp	xzr, x20, [x19, #72]
	ldr	x21, [x19, #56]
	stp	xzr, x21, [x19, #56]
	mov	x0, x20
	mov	x1, x21
	bl	_png_get_rowbytes
	str	w0, [x19, #48]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _LIBPNG_BUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LIBPNG_BUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_display_log
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #-1
	bl	_png_get_valid
	str	w0, [x19]
Lloh7:
	adrp	x8, _PNG_INFO_IDAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PNG_INFO_IDAT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _LIBPNG_BUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LIBPNG_BUG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_display_log
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_png_get_rows
	str	x0, [x19, #40]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _LIBPNG_BUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIBPNG_BUG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_display_log
LBB0_6:
	add	x2, x19, #36
	add	x3, x19, #32
	add	x4, x19, #4
	add	x5, x19, #8
	add	x6, x19, #28
	add	x7, x19, #24
	add	x8, x19, #20
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_png_get_IHDR
	cbnz	w0, LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _LIBPNG_BUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LIBPNG_BUG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_display_log
LBB0_8:
Lloh25:
	adrp	x8, _TTABLE_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TTABLE_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x8]
	cbz	w10, LBB0_19
; %bb.9:
	mov	w8, #0
	mov	w9, #0
	ldp	w13, w11, [x19, #4]
Lloh28:
	adrp	x14, _transform_info@GOTPAGE
Lloh29:
	ldr	x14, [x14, _transform_info@GOTPAGEOFF]
	ldr	w12, [x19]
Lloh30:
	ldr	x15, [x14]
Lloh31:
	adrp	x14, _TRANSFORM_R@GOTPAGE
Lloh32:
	ldr	x14, [x14, _TRANSFORM_R@GOTPAGEOFF]
Lloh33:
	ldr	w14, [x14]
	add	x15, x15, #12
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w17, [x15, #8]
	tst	w14, w17
	csel	w16, wzr, w16, eq
	orr	w9, w16, w9
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x15, x15, #32
	subs	x10, x10, #1
	b.eq	LBB0_20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	x16, [x15, #12]
	cbz	x16, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w16, w17, [x15, #-12]
	and	w0, w17, w12
	cmp	w17, #0
	ccmp	w0, #0, #0, ne
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w17, [x15, #-4]
	bics	wzr, w17, w11
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w17, [x15]
	tst	w17, w11
	b.ne	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w17, [x15, #4]
	tst	w17, w13
	b.eq	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w17, [x15, #8]
	tst	w14, w17
	b.eq	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	orr	w8, w16, w8
	b	LBB0_11
LBB0_19:
	mov	w9, #0
	mov	w8, #0
LBB0_20:
	bic	w9, w9, w8
	stp	w8, w9, [x19, #12]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"original read"

	.comm	_LIBPNG_BUG,4,2                 ; @LIBPNG_BUG
l_.str.1:                               ; @.str.1
	.asciz	"png_get_rowbytes returned 0"

	.comm	_PNG_INFO_IDAT,4,2              ; @PNG_INFO_IDAT
l_.str.2:                               ; @.str.2
	.asciz	"png_read_png did not set IDAT flag"

l_.str.3:                               ; @.str.3
	.asciz	"png_read_png did not create row buffers"

l_.str.4:                               ; @.str.4
	.asciz	"png_get_IHDR failed"

	.comm	_TTABLE_SIZE,4,2                ; @TTABLE_SIZE
	.comm	_transform_info,8,3             ; @transform_info
	.comm	_TRANSFORM_R,4,2                ; @TRANSFORM_R
	.no_dead_strip	_update_display
.subsections_via_symbols
