	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_image_format
_png_image_format:                      ## @png_image_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	movq	_PNG_COLOR_MASK_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_PNG_FORMAT_FLAG_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	_PNG_COLOR_MASK_ALPHA@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rdi)
	jle	LBB0_5
LBB0_4:
	movq	_PNG_FORMAT_FLAG_ALPHA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_5:
	xorl	%eax, %eax
	cmpl	$16, 16(%rdi)
	jne	LBB0_7
## %bb.6:
	movq	_PNG_FORMAT_FLAG_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	_PNG_COLOR_MASK_PALETTE@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	je	LBB0_9
## %bb.8:
	movq	_PNG_FORMAT_FLAG_COLORMAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_9:
	orl	%edx, %ecx
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_MASK_COLOR,4,2       ## @PNG_COLOR_MASK_COLOR
	.comm	_PNG_FORMAT_FLAG_COLOR,4,2      ## @PNG_FORMAT_FLAG_COLOR
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ## @PNG_COLOR_MASK_ALPHA
	.comm	_PNG_FORMAT_FLAG_ALPHA,4,2      ## @PNG_FORMAT_FLAG_ALPHA
	.comm	_PNG_FORMAT_FLAG_LINEAR,4,2     ## @PNG_FORMAT_FLAG_LINEAR
	.comm	_PNG_COLOR_MASK_PALETTE,4,2     ## @PNG_COLOR_MASK_PALETTE
	.comm	_PNG_FORMAT_FLAG_COLORMAP,4,2   ## @PNG_FORMAT_FLAG_COLORMAP
	.no_dead_strip	_png_image_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_image_format
_png_image_format:                      ; @png_image_format
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PNG_COLOR_MASK_COLOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_COLOR_MASK_COLOR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PNG_FORMAT_FLAG_COLOR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PNG_FORMAT_FLAG_COLOR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _PNG_COLOR_MASK_ALPHA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PNG_COLOR_MASK_ALPHA@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x0, #8]
	cmp	x10, #1
	b.lt	LBB0_3
LBB0_2:
Lloh9:
	adrp	x10, _PNG_FORMAT_FLAG_ALPHA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PNG_FORMAT_FLAG_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_3:
	ldr	w10, [x0, #16]
Lloh12:
	adrp	x11, _PNG_FORMAT_FLAG_LINEAR@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PNG_FORMAT_FLAG_LINEAR@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	w10, #16
	csel	w10, w11, wzr, eq
	orr	w9, w10, w9
Lloh15:
	adrp	x10, _PNG_COLOR_MASK_PALETTE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PNG_COLOR_MASK_PALETTE@GOTPAGEOFF]
Lloh17:
	adrp	x11, _PNG_FORMAT_FLAG_COLORMAP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _PNG_FORMAT_FLAG_COLORMAP@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_MASK_COLOR,4,2       ; @PNG_COLOR_MASK_COLOR
	.comm	_PNG_FORMAT_FLAG_COLOR,4,2      ; @PNG_FORMAT_FLAG_COLOR
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ; @PNG_COLOR_MASK_ALPHA
	.comm	_PNG_FORMAT_FLAG_ALPHA,4,2      ; @PNG_FORMAT_FLAG_ALPHA
	.comm	_PNG_FORMAT_FLAG_LINEAR,4,2     ; @PNG_FORMAT_FLAG_LINEAR
	.comm	_PNG_COLOR_MASK_PALETTE,4,2     ; @PNG_COLOR_MASK_PALETTE
	.comm	_PNG_FORMAT_FLAG_COLORMAP,4,2   ; @PNG_FORMAT_FLAG_COLORMAP
	.no_dead_strip	_png_image_format
.subsections_via_symbols
