	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdbpBuildSignMediaId           ## -- Begin function SdbpBuildSignMediaId
	.p2align	4, 0x90
_SdbpBuildSignMediaId:                  ## @SdbpBuildSignMediaId
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_SdbpInitTempStr
	movl	(%r14), %esi
	sarl	$2, %esi
	addl	$30, %esi
	movq	%rbx, %rdi
	callq	_SdbpResizeTempStr
	movq	-64(%rbp), %rdi
	movl	-56(%rbp), %esi
	movq	8(%r14), %rdx
	movl	(%r14), %ecx
	callq	_StringCbCopyNW
	movq	8(%r14), %rdi
	movl	$92, %esi
	callq	_wcsrchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movw	$42, 1(%rax)
	movq	8(%r14), %rdi
	leaq	-48(%rbp), %rsi
	callq	_FindFirstFileW
	movq	%rax, %r15
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
LBB0_5:
	leaq	-72(%rbp), %rdi
	callq	_SdbpFreeTempStr
	movq	%r14, %rdi
	callq	_SdbpFreeTempStr
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	movq	_FILE_ATTRIBUTE_DIRECTORY@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%r13), %ecx
	andl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	leal	(%rax,%rax), %ebx
	xorl	%edx, %ebx
	testl	%edx, %edx
	cmovel	%eax, %ebx
	testl	%ecx, %ecx
	cmovnel	%eax, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_FindNextFileW
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_FindClose
	movl	(%r14), %esi
	sarl	%esi
	addl	$20, %esi
	movq	%r14, %rdi
	callq	_SdbpResizeTempStr
	movq	8(%r14), %rdi
	movl	16(%r14), %esi
	movq	_SIGN_MEDIA_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r8
	addq	$3, %r8
	movl	%ebx, %ecx
	callq	_StringCbPrintfW
	movq	8(%r14), %rdi
	callq	_SdbpStrlen
	shll	$2, %eax
	movl	%eax, (%r14)
	leaq	-72(%rbp), %rdi
	callq	_SdbpFreeTempStr
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_SIGN_MEDIA_FMT,4,2             ## @SIGN_MEDIA_FMT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdbpBuildSignMediaId           ; -- Begin function SdbpBuildSignMediaId
	.p2align	2
_SdbpBuildSignMediaId:                  ; @SdbpBuildSignMediaId
	.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, x0
	add	x0, sp, #8
	bl	_SdbpInitTempStr
	ldr	w8, [x19]
	asr	w8, w8, #2
	add	w1, w8, #30
	add	x0, sp, #8
	bl	_SdbpResizeTempStr
	ldr	x0, [sp, #16]
	ldr	w1, [sp, #24]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	bl	_StringCbCopyNW
	ldr	x0, [x19, #8]
	mov	w1, #92
	bl	_wcsrchr
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #42
	sturh	w8, [x0, #1]
	ldr	x0, [x19, #8]
	mov	x1, sp
	bl	_FindFirstFileW
Lloh0:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	add	x0, sp, #8
	bl	_SdbpFreeTempStr
	mov	x0, x19
	bl	_SdbpFreeTempStr
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x21, x0
	mov	w20, #0
Lloh5:
	adrp	x22, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldp	w9, w10, [sp]
	and	w8, w8, w9
	cmp	w10, #0
	ccmp	w8, #0, #0, ne
	eor	w8, w10, w20, lsl #1
	csel	w20, w8, w20, eq
	mov	x1, sp
	mov	x0, x21
	bl	_FindNextFileW
	cbnz	x0, LBB0_4
; %bb.5:
	mov	x0, x21
	bl	_FindClose
	ldr	w8, [x19]
	asr	w8, w8, #1
	add	w1, w8, #20
	mov	x0, x19
	bl	_SdbpResizeTempStr
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #16]
Lloh7:
	adrp	x8, _SIGN_MEDIA_FMT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIGN_MEDIA_FMT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	x8, [sp, #16]
	add	x4, x8, #3
	mov	x3, x20
	bl	_StringCbPrintfW
	ldr	x0, [x19, #8]
	bl	_SdbpStrlen
	lsl	w8, w0, #2
	str	w8, [x19]
	add	x0, sp, #8
	bl	_SdbpFreeTempStr
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_SIGN_MEDIA_FMT,4,2             ; @SIGN_MEDIA_FMT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
