	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_align_debug_buffer       ## -- Begin function cudbg_align_debug_buffer
	.p2align	4, 0x90
_cudbg_align_debug_buffer:              ## @cudbg_align_debug_buffer
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movslq	(%rdi), %rdi
	movl	(%rsi), %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	andl	$-4, %edx
	movl	%eax, %ecx
	subl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	movl	$4, %ebx
	subl	%ecx, %ebx
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	(%r15), %eax
	addl	%ebx, %eax
	movl	%eax, (%r15)
	movl	%ebx, 4(%r14)
	subl	(%r14), %eax
LBB0_2:
	movl	%eax, 8(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_align_debug_buffer       ; -- Begin function cudbg_align_debug_buffer
	.p2align	2
_cudbg_align_debug_buffer:              ; @cudbg_align_debug_buffer
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldrsw	x9, [x0]
	ldr	w8, [x1]
	sub	w8, w9, w8
	negs	w10, w8
	and	w11, w8, #0x3
	and	w10, w10, #0x3
	csneg	w10, w11, w10, mi
	cbz	w10, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	w8, #4
	sub	w21, w8, w10
	ldr	x8, [x0, #8]
	add	x0, x8, x9, lsl #2
	add	x1, sp, #8
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, w21
	str	w8, [x20]
	str	w21, [x19, #4]
	ldr	w9, [x19]
	sub	w8, w8, w9
LBB0_2:
	str	w8, [x19, #8]
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
