	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wolfssl_receive_cb
_wolfssl_receive_cb:                    ## @wolfssl_receive_cb
	.cfi_startproc
## %bb.0:
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	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	%rcx, %rbx
	movq	%rsi, %r14
	movslq	%edx, %r15
	movl	8(%rcx), %edi
	callq	_wpabuf_len
	subq	(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_wpabuf_len
	movq	%rax, %r15
	subq	(%rbx), %r15
LBB0_4:
	movl	8(%rbx), %edi
	callq	_wpabuf_head_u8
	addq	(%rbx), %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_os_memcpy
	addq	%r15, (%rbx)
	testq	%r15, %r15
	movl	$-2, %eax
	cmovnel	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wolfssl_receive_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wolfssl_receive_cb
_wolfssl_receive_cb:                    ; @wolfssl_receive_cb
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	x3, LBB0_4
; %bb.1:
	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, x3
	mov	x20, x1
	sxtw	x21, w2
	ldr	w0, [x3, #8]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x8, x0, x8
	cmp	x8, x21
	b.hs	LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x21, x0, x8
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_wpabuf_head_u8
	ldr	x8, [x19]
	add	x1, x8, x0
	mov	x0, x20
	mov	x2, x21
	bl	_os_memcpy
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19]
	cmp	x21, #0
	mov	w8, #-2
	csel	w0, w8, w21, eq
	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
	ret
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wolfssl_receive_cb
.subsections_via_symbols
