	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvtap_open
_macvtap_open:                          ## @macvtap_open
	.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	%rsi, %r13
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	callq	_iminor
	movl	%eax, %edi
	callq	_dev_get_by_macvtap_minor
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_macvtap_proto@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_sk_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	leaq	40(%rax), %rdi
	callq	_init_waitqueue_head
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, 24(%rbx)
	movq	_macvtap_socket_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %r13
	addq	$8, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sock_init_data
	movq	_macvtap_sock_write_space@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_IFF_VNET_HDR@GOTPCREL(%rip), %rax
	movq	_IFF_NO_PI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IFF_TAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	$4, 4(%rbx)
	testq	%r12, %r12
	je	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	movl	(%rax), %eax
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_SOCK_ZEROCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sock_set_flag
LBB0_7:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_macvtap_set_queue
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_sock_put
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_dev_put
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_macvtap_proto,4,2              ## @macvtap_proto
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.comm	_macvtap_socket_ops,4,2         ## @macvtap_socket_ops
	.comm	_macvtap_sock_write_space,4,2   ## @macvtap_sock_write_space
	.comm	_IFF_VNET_HDR,4,2               ## @IFF_VNET_HDR
	.comm	_IFF_NO_PI,4,2                  ## @IFF_NO_PI
	.comm	_IFF_TAP,4,2                    ## @IFF_TAP
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_SOCK_ZEROCOPY,4,2              ## @SOCK_ZEROCOPY
	.no_dead_strip	_macvtap_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvtap_open
_macvtap_open:                          ; @macvtap_open
	.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, x1
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x21, [x8]
	bl	_iminor
	bl	_dev_get_by_macvtap_minor
	mov	x19, x0
	bl	_netdev_priv
	cbz	x19, LBB0_8
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, _macvtap_proto@GOTPAGE
Lloh13:
	ldr	x3, [x3, _macvtap_proto@GOTPAGEOFF]
	mov	x0, x21
	bl	_sk_alloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	add	x0, x0, #40
	bl	_init_waitqueue_head
Lloh14:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SS_CONNECTED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SS_CONNECTED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #32]
	str	x20, [x21, #24]
Lloh20:
	adrp	x8, _macvtap_socket_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _macvtap_socket_ops@GOTPAGEOFF]
	mov	x0, x21
	str	x8, [x0, #16]!
	add	x23, x21, #8
	mov	x1, x23
	bl	_sock_init_data
Lloh22:
	adrp	x8, _macvtap_sock_write_space@GOTPAGE
Lloh23:
	ldr	x8, [x8, _macvtap_sock_write_space@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x21, #8]
Lloh25:
	adrp	x8, _IFF_VNET_HDR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IFF_VNET_HDR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _IFF_NO_PI@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IFF_NO_PI@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _IFF_TAP@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IFF_TAP@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh33:
	ldr	w9, [x10]
	orr	w8, w8, w9
	mov	w9, #4
	stp	w8, w9, [x21]
	cbz	x22, LBB0_6
; %bb.3:
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _NETIF_F_HIGHDMA@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh37:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh38:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh40:
	adrp	x8, _SOCK_ZEROCOPY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SOCK_ZEROCOPY@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_sock_set_flag
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_macvtap_set_queue
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x23
	bl	_sock_put
	b	LBB0_10
LBB0_8:
Lloh43:
	adrp	x8, _ENODEV@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_9:
	neg	w20, w23
LBB0_10:
	mov	x0, x19
	bl	_dev_put
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_macvtap_proto,4,2              ; @macvtap_proto
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.comm	_macvtap_socket_ops,4,2         ; @macvtap_socket_ops
	.comm	_macvtap_sock_write_space,4,2   ; @macvtap_sock_write_space
	.comm	_IFF_VNET_HDR,4,2               ; @IFF_VNET_HDR
	.comm	_IFF_NO_PI,4,2                  ; @IFF_NO_PI
	.comm	_IFF_TAP,4,2                    ; @IFF_TAP
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_SOCK_ZEROCOPY,4,2              ; @SOCK_ZEROCOPY
	.no_dead_strip	_macvtap_open
.subsections_via_symbols
