	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpip_callback_with_block      ## -- Begin function tcpip_callback_with_block
	.p2align	4, 0x90
_tcpip_callback_with_block:             ## @tcpip_callback_with_block
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_mbox@GOTPCREL(%rip), %rdi
	callq	_sys_mbox_valid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_MEMP_TCPIP_MSG_API@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_memp_malloc
	movq	_ERR_MEM@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movq	_TCPIP_MSG_CALLBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%r12d, 8(%rbx)
	movq	%r15, (%rbx)
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	_mbox@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_sys_mbox_post
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_ERR_VAL@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rcx, %r14
	movq	_mbox@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_sys_mbox_trypost
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_memp_free
	movq	%r14, %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mbox,4,2                       ## @mbox
	.comm	_MEMP_TCPIP_MSG_API,4,2         ## @MEMP_TCPIP_MSG_API
	.comm	_ERR_MEM,8,3                    ## @ERR_MEM
	.comm	_TCPIP_MSG_CALLBACK,4,2         ## @TCPIP_MSG_CALLBACK
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_ERR_VAL,8,3                    ## @ERR_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpip_callback_with_block      ; -- Begin function tcpip_callback_with_block
	.p2align	2
_tcpip_callback_with_block:             ; @tcpip_callback_with_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _mbox@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mbox@GOTPAGEOFF]
	bl	_sys_mbox_valid
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x23, _MEMP_TCPIP_MSG_API@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MEMP_TCPIP_MSG_API@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_memp_malloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh4:
	adrp	x8, _TCPIP_MSG_CALLBACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCPIP_MSG_CALLBACK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	w22, [x0, #8]
	str	x21, [x0]
Lloh7:
	adrp	x0, _mbox@GOTPAGE
Lloh8:
	ldr	x0, [x0, _mbox@GOTPAGEOFF]
	cbz	x20, LBB0_5
; %bb.3:
	mov	x1, x19
	bl	_sys_mbox_post
Lloh9:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x1, x19
	bl	_sys_mbox_trypost
Lloh13:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x0, x9
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_memp_free
LBB0_7:
Lloh15:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mbox,4,2                       ; @mbox
	.comm	_MEMP_TCPIP_MSG_API,4,2         ; @MEMP_TCPIP_MSG_API
	.comm	_ERR_MEM,8,3                    ; @ERR_MEM
	.comm	_TCPIP_MSG_CALLBACK,4,2         ; @TCPIP_MSG_CALLBACK
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_ERR_VAL,8,3                    ; @ERR_VAL
.subsections_via_symbols
