	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vnet_hdr_len
_set_vnet_hdr_len:                      ## @set_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	-28(%rbp), %esi
	movl	$4, %edx
	callq	_bcopy
	movq	_NETMAP_API@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_NETMAP_BDG_VNET_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%r14d, -40(%rbp)
	movl	4(%rbx), %edi
	movq	_NIOCREGIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_D
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETMAP_API,4,2                 ## @NETMAP_API
	.comm	_NETMAP_BDG_VNET_HDR,4,2        ## @NETMAP_BDG_VNET_HDR
	.comm	_NIOCREGIF,4,2                  ## @NIOCREGIF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set virtio-net header length %d"

	.no_dead_strip	_set_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 set_vnet_hdr_len
_set_vnet_hdr_len:                      ; @set_vnet_hdr_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w19, [x0]
	cbz	w19, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	mov	w2, #4
	bl	_bcopy
Lloh0:
	adrp	x8, _NETMAP_API@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETMAP_API@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _NETMAP_BDG_VNET_HDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETMAP_BDG_VNET_HDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w19, w8, [sp]
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _NIOCREGIF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIOCREGIF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_D
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETMAP_API,4,2                 ; @NETMAP_API
	.comm	_NETMAP_BDG_VNET_HDR,4,2        ; @NETMAP_BDG_VNET_HDR
	.comm	_NIOCREGIF,4,2                  ; @NIOCREGIF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set virtio-net header length %d"

	.no_dead_strip	_set_vnet_hdr_len
.subsections_via_symbols
