	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_write_cb
_test_write_cb:                         ## @test_write_cb
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_test_write_len@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	%rsi, %rdi
	callq	_strlen
	leaq	(%rax,%rbx), %rsi
	movq	%rsi, (%r15)
	movl	(%r14), %eax
	movq	_arg_store@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert_zu_le                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_test_write_len,8,3             ## @test_write_len
	.comm	_arg_store,4,2                  ## @arg_store
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Test write overflowed"

	.no_dead_strip	_test_write_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_write_cb
_test_write_cb:                         ; @test_write_cb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _test_write_len@GOTPAGE
Lloh1:
	ldr	x21, [x21, _test_write_len@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	x0, x1
	bl	_strlen
	add	x1, x0, x20
	str	x1, [x21]
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _arg_store@GOTPAGE
Lloh3:
	ldr	x9, [x9, _arg_store@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_assert_zu_le
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_test_write_len,8,3             ; @test_write_len
	.comm	_arg_store,4,2                  ; @arg_store
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Test write overflowed"

	.no_dead_strip	_test_write_cb
.subsections_via_symbols
