	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_open
_vmxnet3_open:                          ## @vmxnet3_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
	callq	_netdev_priv
	movq	%rax, %r13
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rdi
	addq	%r14, %rdi
	callq	_spin_lock_init
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_VMXNET3_VERSION_GE_3
	movl	$4, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r13, %r12
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_VMXNET3_CMD_GET_TXDATA_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_VMXNET3_READ_BAR1_REG
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_VMXNET3_TXDATA_DESC_MIN_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_7
## %bb.5:
	movq	_VMXNET3_TXDATA_DESC_MAX_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_7
## %bb.6:
	movq	_VMXNET3_TXDATA_DESC_SIZE_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movl	$4, %r14d
	cmovel	%r15d, %r14d
LBB0_7:
	movl	%r14d, 4(%r13)
	movl	20(%r13), %esi
	movl	16(%r13), %edx
	movl	8(%r13), %r9d
	movl	12(%r13), %ecx
	movq	%r13, %rdi
	movl	%r14d, %r8d
	callq	_vmxnet3_create_queues
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r13, %rdi
	callq	_vmxnet3_activate_dev
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_vmxnet3_rq_destroy_all
	movq	%r13, %rdi
	callq	_vmxnet3_tq_destroy_all
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
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	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_GET_TXDATA_DESC_SIZE,4,2 ## @VMXNET3_CMD_GET_TXDATA_DESC_SIZE
	.comm	_VMXNET3_TXDATA_DESC_MIN_SIZE,4,2 ## @VMXNET3_TXDATA_DESC_MIN_SIZE
	.comm	_VMXNET3_TXDATA_DESC_MAX_SIZE,4,2 ## @VMXNET3_TXDATA_DESC_MAX_SIZE
	.comm	_VMXNET3_TXDATA_DESC_SIZE_MASK,4,2 ## @VMXNET3_TXDATA_DESC_SIZE_MASK
	.no_dead_strip	_vmxnet3_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_open
_vmxnet3_open:                          ; @vmxnet3_open
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x20
	bl	_spin_lock_init
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_VMXNET3_VERSION_GE_3
	cbz	x0, LBB0_6
; %bb.4:
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x20, _VMXNET3_REG_CMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VMXNET3_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _VMXNET3_CMD_GET_TXDATA_DESC_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMXNET3_CMD_GET_TXDATA_DESC_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	ldr	w1, [x20]
	mov	x0, x19
	bl	_VMXNET3_READ_BAR1_REG
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _VMXNET3_TXDATA_DESC_MIN_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMXNET3_TXDATA_DESC_MIN_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _VMXNET3_TXDATA_DESC_MAX_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VMXNET3_TXDATA_DESC_MAX_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mov	w4, #4
	cmp	w20, w8
	ccmp	w20, w9, #0, ge
	b.gt	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _VMXNET3_TXDATA_DESC_SIZE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMXNET3_TXDATA_DESC_SIZE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	csel	w4, w20, w4, eq
	b	LBB0_7
LBB0_6:
	mov	w4, #4
LBB0_7:
	str	w4, [x19, #4]
	ldp	w2, w1, [x19, #16]
	ldp	w5, w3, [x19, #8]
	mov	x0, x19
	bl	_vmxnet3_create_queues
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_vmxnet3_activate_dev
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_vmxnet3_rq_destroy_all
	mov	x0, x19
	bl	_vmxnet3_tq_destroy_all
LBB0_10:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_GET_TXDATA_DESC_SIZE,4,2 ; @VMXNET3_CMD_GET_TXDATA_DESC_SIZE
	.comm	_VMXNET3_TXDATA_DESC_MIN_SIZE,4,2 ; @VMXNET3_TXDATA_DESC_MIN_SIZE
	.comm	_VMXNET3_TXDATA_DESC_MAX_SIZE,4,2 ; @VMXNET3_TXDATA_DESC_MAX_SIZE
	.comm	_VMXNET3_TXDATA_DESC_SIZE_MASK,4,2 ; @VMXNET3_TXDATA_DESC_SIZE_MASK
	.no_dead_strip	_vmxnet3_open
.subsections_via_symbols
