	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netbe_set_cap                  ## -- Begin function netbe_set_cap
	.p2align	4, 0x90
_netbe_set_cap:                         ## @netbe_set_cap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	_VNET_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	je	LBB0_3
## %bb.2:
	addq	$-4, %rax
	movl	%r14d, %ecx
	movl	$-1, %r12d
	cmpq	%rcx, %rax
	jne	LBB0_7
LBB0_3:
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	*8(%rbx)
	movl	%eax, %r12d
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %ecx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	jmp	LBB0_6
LBB0_4:
	movl	$1, %edi
LBB0_6:
	callq	_assert
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VNET_HDR_LEN,4,2               ## @VNET_HDR_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netbe_set_cap                  ; -- Begin function netbe_set_cap
	.p2align	2
_netbe_set_cap:                         ; @netbe_set_cap
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VNET_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VNET_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, w20
	sub	x10, x8, #4
	cmp	w8, w20
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_4
LBB0_2:
	str	w20, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w9, [x19]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_6
LBB0_4:
	mov	w20, #-1
	b	LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	bl	_assert
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VNET_HDR_LEN,4,2               ; @VNET_HDR_LEN
.subsections_via_symbols
