	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_frame_wic
_select_frame_wic:                      ## @select_frame_wic
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_decode_frame_wic
	movq	_Ok@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.1:
	movl	12(%rbx), %eax
	movq	-24(%rbp), %rdi
	movl	%eax, 12(%rdi)
	addq	$8, %rdi
	leaq	8(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_free_image_data
	movq	(%rbx), %rax
	movq	_ImageTypeBitmap@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_ImageTypeMetafile@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	movq	-24(%rbp), %rdi
	movl	(%rdi), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	-24(%rbp), %rdi
LBB0_5:
	movq	$-1, (%rdi)
	callq	_heap_free
	movq	(%r14), %rax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_Ok,8,3                         ## @Ok
	.comm	_ImageTypeBitmap,8,3            ## @ImageTypeBitmap
	.comm	_ImageTypeMetafile,8,3          ## @ImageTypeMetafile
	.no_dead_strip	_select_frame_wic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_frame_wic
_select_frame_wic:                      ; @select_frame_wic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x3, #0
	bl	_decode_frame_wic
Lloh3:
	adrp	x20, _Ok@GOTPAGE
Lloh4:
	ldr	x20, [x20, _Ok@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x19, #12]
	ldr	x9, [sp, #8]
	str	w8, [x9, #12]
	add	x0, x9, #8
	add	x1, x19, #8
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_free_image_data
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _ImageTypeBitmap@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ImageTypeBitmap@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _ImageTypeMetafile@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ImageTypeMetafile@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x0, [sp, #8]
LBB0_5:
	mov	x8, #-1
	str	x8, [x0]
	bl	_heap_free
	ldr	x0, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_Ok,8,3                         ; @Ok
	.comm	_ImageTypeBitmap,8,3            ; @ImageTypeBitmap
	.comm	_ImageTypeMetafile,8,3          ; @ImageTypeMetafile
	.no_dead_strip	_select_frame_wic
.subsections_via_symbols
