	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GdipGetEncoderClsid            ## -- Begin function GdipGetEncoderClsid
	.p2align	4, 0x90
_GdipGetEncoderClsid:                   ## @GdipGetEncoderClsid
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_GdipGetImageEncodersSize
	movq	_Ok@GOTPCREL(%rip), %r13
	movq	_E_FAIL@GOTPCREL(%rip), %r12
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movq	%rax, %rdx
	callq	_GdipGetImageEncoders
	movq	_E_FAIL@GOTPCREL(%rip), %r12
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.5:
	cmpq	$0, -56(%rbp)
	jle	LBB0_10
## %bb.6:
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rbx,8), %edi
	movl	%r15d, %esi
	callq	__wcsicmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	-56(%rbp), %rbx
	jl	LBB0_7
	jmp	LBB0_10
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_8:
	movl	(%r14,%rbx,8), %eax
	movl	%eax, (%r13)
	movq	_S_OK@GOTPCREL(%rip), %r12
LBB0_10:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
LBB0_11:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Ok,8,3                         ## @Ok
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GdipGetEncoderClsid            ; -- Begin function GdipGetEncoderClsid
	.p2align	2
_GdipGetEncoderClsid:                   ; @GdipGetEncoderClsid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, sp
	bl	_GdipGetImageEncodersSize
Lloh0:
	adrp	x22, _Ok@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Ok@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [sp]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x22, _E_FAIL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _E_FAIL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	bl	_GetProcessHeap
	ldr	x2, [sp]
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldp	x1, x0, [sp]
	mov	x2, x21
	bl	_GdipGetImageEncoders
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	cmp	x0, x8
	ccmp	x9, #1, #8, eq
	b.ge	LBB0_6
; %bb.4:
Lloh4:
	adrp	x22, _E_FAIL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _E_FAIL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x22, _E_OUTOFMEMORY@GOTPAGE
Lloh7:
	ldr	x22, [x22, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	x24, #0
	add	x23, x21, #4
Lloh8:
	adrp	x22, _E_FAIL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _E_FAIL@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	__wcsicmp
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #8]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:
	ldur	w8, [x23, #-4]
	str	w8, [x19]
Lloh10:
	adrp	x22, _S_OK@GOTPAGE
Lloh11:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
LBB0_10:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_11:
	ldr	w0, [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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_Ok,8,3                         ; @Ok
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
