	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vnet_hdr_len
_get_vnet_hdr_len:                      ## @get_vnet_hdr_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %esi
	movl	$4, %edx
	callq	_bcopy
	movq	_NETMAP_API@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_NETMAP_VNET_HDR_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	4(%rbx), %edi
	movq	_NIOCREGIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_D
	jmp	LBB0_4
LBB0_2:
	movl	-32(%rbp), %esi
	movl	%esi, (%rbx)
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_D
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETMAP_API,4,2                 ## @NETMAP_API
	.comm	_NETMAP_VNET_HDR_GET,4,2        ## @NETMAP_VNET_HDR_GET
	.comm	_NIOCREGIF,4,2                  ## @NIOCREGIF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to get virtio-net header length"

L_.str.1:                               ## @.str.1
	.asciz	"Port requires virtio-net header, length = %d"

	.no_dead_strip	_get_vnet_hdr_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vnet_hdr_len
_get_vnet_hdr_len:                      ; @get_vnet_hdr_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [sp, #28]
	mov	w2, #4
	bl	_bcopy
Lloh0:
	adrp	x8, _NETMAP_API@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETMAP_API@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NETMAP_VNET_HDR_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETMAP_VNET_HDR_GET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _NIOCREGIF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIOCREGIF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	cbz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w8, [sp, #16]
	str	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_D
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NETMAP_API,4,2                 ; @NETMAP_API
	.comm	_NETMAP_VNET_HDR_GET,4,2        ; @NETMAP_VNET_HDR_GET
	.comm	_NIOCREGIF,4,2                  ; @NIOCREGIF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to get virtio-net header length"

l_.str.1:                               ; @.str.1
	.asciz	"Port requires virtio-net header, length = %d"

	.no_dead_strip	_get_vnet_hdr_len
.subsections_via_symbols
