	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_image_png
_decode_image_png:                      ## @decode_image_png
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GUID_ContainerFormatPng@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_initialize_decoder_wic
	movq	%rax, %rbx
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_16
## %bb.1:
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	callq	_IWICBitmapDecoder_GetFrame
	movq	_S_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_14
## %bb.2:
	movq	-56(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_IWICBitmapFrameDecode_GetPixelFormat
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.3:
	movq	_GUID_WICPixelFormat8bppGray@GOTPCREL(%rip), %rsi
	leaq	-36(%rbp), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	_GUID_WICPixelFormat8bppIndexed@GOTPCREL(%rip), %rsi
	leaq	-36(%rbp), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	_GUID_WICPixelFormat4bppIndexed@GOTPCREL(%rip), %rsi
	leaq	-36(%rbp), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	_GUID_WICPixelFormat2bppIndexed@GOTPCREL(%rip), %rsi
	leaq	-36(%rbp), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	_GUID_WICPixelFormat1bppIndexed@GOTPCREL(%rip), %rsi
	leaq	-36(%rbp), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_GUID_WICPixelFormat24bppBGR@GOTPCREL(%rip), %rsi
	leaq	-36(%rbp), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	%r12, %rdi
	callq	_has_png_transparency_chunk
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	movq	-48(%rbp), %rdi
	movq	_png_metadata_reader@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_decode_frame_wic
	jmp	LBB0_13
LBB0_14:
	movq	%rax, %rdi
	callq	_hresult_to_status
	movq	%rax, %rbx
	jmp	LBB0_15
LBB0_12:
	movq	%rax, %rdi
	callq	_hresult_to_status
LBB0_13:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_IWICBitmapFrameDecode_Release
LBB0_15:
	movq	-48(%rbp), %rdi
	callq	_IWICBitmapDecoder_Release
LBB0_16:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GUID_ContainerFormatPng,4,2    ## @GUID_ContainerFormatPng
	.comm	_Ok,8,3                         ## @Ok
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_GUID_WICPixelFormat8bppGray,4,2 ## @GUID_WICPixelFormat8bppGray
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_GUID_WICPixelFormat8bppIndexed,4,2 ## @GUID_WICPixelFormat8bppIndexed
	.comm	_GUID_WICPixelFormat4bppIndexed,4,2 ## @GUID_WICPixelFormat4bppIndexed
	.comm	_GUID_WICPixelFormat2bppIndexed,4,2 ## @GUID_WICPixelFormat2bppIndexed
	.comm	_GUID_WICPixelFormat1bppIndexed,4,2 ## @GUID_WICPixelFormat1bppIndexed
	.comm	_GUID_WICPixelFormat24bppBGR,4,2 ## @GUID_WICPixelFormat24bppBGR
	.comm	_png_metadata_reader,4,2        ## @png_metadata_reader
	.no_dead_strip	_decode_image_png
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_image_png
_decode_image_png:                      ; @decode_image_png
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x1, _GUID_ContainerFormatPng@GOTPAGE
Lloh4:
	ldr	x1, [x1, _GUID_ContainerFormatPng@GOTPAGEOFF]
	add	x2, sp, #24
	bl	_initialize_decoder_wic
	mov	x22, x0
Lloh5:
	adrp	x8, _Ok@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.1:
	ldr	x0, [sp, #24]
	add	x2, sp, #16
	mov	w1, #0
	bl	_IWICBitmapDecoder_GetFrame
Lloh8:
	adrp	x22, _S_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [sp, #16]
	add	x1, sp, #12
	bl	_IWICBitmapFrameDecode_GetPixelFormat
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
Lloh10:
	adrp	x1, _GUID_WICPixelFormat8bppGray@GOTPAGE
Lloh11:
	ldr	x1, [x1, _GUID_WICPixelFormat8bppGray@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_IsEqualGUID
	cbz	x0, LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_5:
	bl	_hresult_to_status
	mov	x22, x0
	b	LBB0_15
LBB0_6:
	bl	_hresult_to_status
	b	LBB0_14
LBB0_7:
Lloh15:
	adrp	x1, _GUID_WICPixelFormat8bppIndexed@GOTPAGE
Lloh16:
	ldr	x1, [x1, _GUID_WICPixelFormat8bppIndexed@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_IsEqualGUID
	cbnz	x0, LBB0_12
; %bb.8:
Lloh17:
	adrp	x1, _GUID_WICPixelFormat4bppIndexed@GOTPAGE
Lloh18:
	ldr	x1, [x1, _GUID_WICPixelFormat4bppIndexed@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_IsEqualGUID
	cbnz	x0, LBB0_12
; %bb.9:
Lloh19:
	adrp	x1, _GUID_WICPixelFormat2bppIndexed@GOTPAGE
Lloh20:
	ldr	x1, [x1, _GUID_WICPixelFormat2bppIndexed@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_IsEqualGUID
	cbnz	x0, LBB0_12
; %bb.10:
Lloh21:
	adrp	x1, _GUID_WICPixelFormat1bppIndexed@GOTPAGE
Lloh22:
	ldr	x1, [x1, _GUID_WICPixelFormat1bppIndexed@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_IsEqualGUID
	cbnz	x0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x1, _GUID_WICPixelFormat24bppBGR@GOTPAGE
Lloh24:
	ldr	x1, [x1, _GUID_WICPixelFormat24bppBGR@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_IsEqualGUID
	cbz	x0, LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_has_png_transparency_chunk
Lloh25:
	adrp	x8, _TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
LBB0_13:
	ldr	x0, [sp, #24]
Lloh28:
	adrp	x8, _png_metadata_reader@GOTPAGE
Lloh29:
	ldr	x8, [x8, _png_metadata_reader@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x1, x20
	mov	w2, #0
	mov	x4, x19
	bl	_decode_frame_wic
LBB0_14:
	mov	x22, x0
	ldr	x0, [sp, #16]
	bl	_IWICBitmapFrameDecode_Release
LBB0_15:
	ldr	x0, [sp, #24]
	bl	_IWICBitmapDecoder_Release
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GUID_ContainerFormatPng,4,2    ; @GUID_ContainerFormatPng
	.comm	_Ok,8,3                         ; @Ok
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_GUID_WICPixelFormat8bppGray,4,2 ; @GUID_WICPixelFormat8bppGray
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_GUID_WICPixelFormat8bppIndexed,4,2 ; @GUID_WICPixelFormat8bppIndexed
	.comm	_GUID_WICPixelFormat4bppIndexed,4,2 ; @GUID_WICPixelFormat4bppIndexed
	.comm	_GUID_WICPixelFormat2bppIndexed,4,2 ; @GUID_WICPixelFormat2bppIndexed
	.comm	_GUID_WICPixelFormat1bppIndexed,4,2 ; @GUID_WICPixelFormat1bppIndexed
	.comm	_GUID_WICPixelFormat24bppBGR,4,2 ; @GUID_WICPixelFormat24bppBGR
	.comm	_png_metadata_reader,4,2        ; @png_metadata_reader
	.no_dead_strip	_decode_image_png
.subsections_via_symbols
