	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_location
_set_location:                          ## @set_location
	.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	(%rsi), %rcx
	movl	(%rcx), %edx
	xorl	%eax, %eax
	testl	%r14d, %edx
	jne	LBB0_9
## %bb.1:
	testl	%r14d, 4(%rcx)
	jne	LBB0_9
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	_PNG_INFO_PLTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_png_get_valid
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_before_PLTE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_after_IDAT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_before_IDAT@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
LBB0_8:
	orl	(%rax), %r14d
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	movl	%r14d, (%rcx,%rax,4)
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_after_IDAT,4,2                 ## @after_IDAT
	.comm	_PNG_INFO_PLTE,4,2              ## @PNG_INFO_PLTE
	.comm	_before_IDAT,4,2                ## @before_IDAT
	.comm	_before_PLTE,4,2                ## @before_PLTE
	.no_dead_strip	_set_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_location
_set_location:                          ; @set_location
	.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
	ldr	x8, [x1]
	ldr	w9, [x8]
	tst	w9, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x2
	ldr	w10, [x8, #4]
	tst	w10, w2
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x1
	ldr	x1, [x1, #8]
	cbz	x1, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _PNG_INFO_PLTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_INFO_PLTE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_png_get_valid
Lloh3:
	adrp	x8, _before_IDAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _before_IDAT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _before_PLTE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _before_PLTE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x10, x9, x8, eq
	ldr	x8, [x20]
	ldr	w9, [x8]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x10, _after_IDAT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _after_IDAT@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
	orr	w10, w10, w19
	cmp	w9, #0
	cset	w9, ne
	str	w10, [x8, w9, uxtw #2]
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_after_IDAT,4,2                 ; @after_IDAT
	.comm	_PNG_INFO_PLTE,4,2              ; @PNG_INFO_PLTE
	.comm	_before_IDAT,4,2                ; @before_IDAT
	.comm	_before_PLTE,4,2                ; @before_PLTE
	.no_dead_strip	_set_location
.subsections_via_symbols
