	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm_writecb
_wm_writecb:                            ## @wm_writecb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_evbuffer_get_length
	xorl	%edi, %edi
	cmpl	$101, %eax
	setl	%dil
	callq	_assert
	movl	(%rbx), %edi
	callq	_evbuffer_get_length
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_evbuffer_get_length
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_evbuffer_drain
	movq	_test_ok@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_wm_writecb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm_writecb
_wm_writecb:                            ; @wm_writecb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_evbuffer_get_length
	cmp	w0, #101
	cset	w0, lt
	bl	_assert
	ldr	w0, [x19]
	bl	_evbuffer_get_length
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w19, [x19]
	mov	x0, x19
	bl	_evbuffer_get_length
	mov	x1, x0
	mov	x0, x19
	bl	_evbuffer_drain
Lloh0:
	adrp	x8, _test_ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_wm_writecb
.subsections_via_symbols
