	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmCreateDefaultServiceSD      ## -- Begin function ScmCreateDefaultServiceSD
	.p2align	4, 0x90
_ScmCreateDefaultServiceSD:             ## @ScmCreateDefaultServiceSD
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	_pDefaultSD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_RtlAbsoluteToSelfRelativeSD
	movq	_STATUS_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT
	xorl	%eax, %eax
	callq	_RtlGetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_RtlAllocateHeap
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_DPRINT
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_RtlAbsoluteToSelfRelativeSD
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%rbx, (%r14)
	cmpq	(%r13), %r15
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	%rax, %rdi
	callq	_RtlNtStatusToDosError
	movq	%rax, %r15
	jmp	LBB0_9
LBB0_3:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_RtlNtStatusToDosError
	movq	%rax, %r15
	cmpq	(%r13), %r15
	je	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_RtlGetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_RtlFreeHeap
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_pDefaultSD,4,2                 ## @pDefaultSD
	.comm	_STATUS_BUFFER_TOO_SMALL,8,3    ## @STATUS_BUFFER_TOO_SMALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BufferLength %lu\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_ERROR_OUTOFMEMORY,8,3          ## @ERROR_OUTOFMEMORY
L_.str.1:                               ## @.str.1
	.asciz	"pRelativeSD %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmCreateDefaultServiceSD      ; -- Begin function ScmCreateDefaultServiceSD
	.p2align	2
_ScmCreateDefaultServiceSD:             ; @ScmCreateDefaultServiceSD
	.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	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x19, [x23]
Lloh2:
	adrp	x22, _pDefaultSD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pDefaultSD@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, #0
	bl	_RtlAbsoluteToSelfRelativeSD
Lloh4:
	adrp	x8, _STATUS_BUFFER_TOO_SMALL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATUS_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x1, [sp, #8]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	bl	_RtlGetProcessHeap
Lloh9:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [sp, #8]
	bl	_RtlAllocateHeap
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_DPRINT
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x21
	bl	_RtlAbsoluteToSelfRelativeSD
	mov	x22, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_6
; %bb.3:
	str	x21, [x20]
	b	LBB0_7
LBB0_4:
	bl	_RtlNtStatusToDosError
	mov	x19, x0
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh16:
	ldr	x19, [x8]
	b	LBB0_9
LBB0_6:
	mov	x0, x22
	bl	_RtlNtStatusToDosError
	mov	x19, x0
LBB0_7:
	ldr	x8, [x23]
	cmp	x19, x8
	b.eq	LBB0_9
; %bb.8:
	bl	_RtlGetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_RtlFreeHeap
LBB0_9:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_pDefaultSD,4,2                 ; @pDefaultSD
	.comm	_STATUS_BUFFER_TOO_SMALL,8,3    ; @STATUS_BUFFER_TOO_SMALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BufferLength %lu\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_ERROR_OUTOFMEMORY,8,3          ; @ERROR_OUTOFMEMORY
l_.str.1:                               ; @.str.1
	.asciz	"pRelativeSD %p\n"

.subsections_via_symbols
