	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cloudabi32_fixup_tcb
_cloudabi32_fixup_tcb:                  ## @cloudabi32_fixup_tcb
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_cloudabi32_fixup
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %r14
	movq	%r14, -48(%rbp)
	movl	$4, %edi
	movl	$4, %esi
	callq	_roundup
	addq	%r14, %rax
	movq	%rax, -40(%rbp)
	movl	$16, %edi
	movl	$4, %esi
	callq	_howmany
	movq	(%rbx), %rsi
	cltq
	shlq	$2, %rax
	subq	%rax, %rsi
	movq	%rsi, (%rbx)
	leaq	-48(%rbp), %rdi
	movl	$16, %edx
	callq	_copyout
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cloudabi32_fixup_tcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cloudabi32_fixup_tcb
_cloudabi32_fixup_tcb:                  ; @cloudabi32_fixup_tcb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_cloudabi32_fixup
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x20, [x19]
	str	x20, [sp, #8]
	mov	w0, #4
	mov	w1, #4
	bl	_roundup
	add	x8, x0, x20
	str	x8, [sp, #16]
	mov	w0, #16
	mov	w1, #4
	bl	_howmany
	ldr	x8, [x19]
	sub	x1, x8, w0, sxtw #2
	str	x1, [x19]
	add	x0, sp, #8
	mov	w2, #16
	bl	_copyout
LBB0_2:
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cloudabi32_fixup_tcb
.subsections_via_symbols
