	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_alloc_intr_resources
_vmxnet3_alloc_intr_resources:          ## @vmxnet3_alloc_intr_resources
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	56(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_VMXNET3_CMD_GET_CONF_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_VMXNET3_READ_BAR1_REG
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	andl	$3, %eax
	movl	%eax, 16(%r15)
	shrl	$2, %ebx
	andl	$3, %ebx
	movl	%ebx, 20(%r15)
	movq	_VMXNET3_IT_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_VMXNET3_IT_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_2:
	movl	$1, 12(%r15)
	movq	40(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	_VMXNET3_IT_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	$1, 24(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_GET_CONF_INTR,4,2  ## @VMXNET3_CMD_GET_CONF_INTR
	.comm	_VMXNET3_IT_AUTO,4,2            ## @VMXNET3_IT_AUTO
	.comm	_VMXNET3_IT_MSIX,4,2            ## @VMXNET3_IT_MSIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using INTx interrupt, #Rx queues: 1.\n"

	.comm	_VMXNET3_IT_INTX,4,2            ## @VMXNET3_IT_INTX
	.comm	_VMXNET3_INTR_BUDDYSHARE,8,3    ## @VMXNET3_INTR_BUDDYSHARE
	.comm	_VMXNET3_INTR_TXSHARE,8,3       ## @VMXNET3_INTR_TXSHARE
	.comm	_VMXNET3_IT_MSI,4,2             ## @VMXNET3_IT_MSI
	.comm	_VMXNET3_LINUX_MIN_MSIX_VECT,4,2 ## @VMXNET3_LINUX_MIN_MSIX_VECT
	.no_dead_strip	_vmxnet3_alloc_intr_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_alloc_intr_resources
_vmxnet3_alloc_intr_resources:          ; @vmxnet3_alloc_intr_resources
	.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	x19, x0
	add	x20, x0, #56
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _VMXNET3_REG_CMD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VMXNET3_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _VMXNET3_CMD_GET_CONF_INTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMXNET3_CMD_GET_CONF_INTR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	ldr	w1, [x21]
	mov	x0, x19
	bl	_VMXNET3_READ_BAR1_REG
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	and	w8, w21, #0x3
	ubfx	w9, w21, #2, #2
	stp	w8, w9, [x19, #16]
Lloh5:
	adrp	x9, _VMXNET3_IT_AUTO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VMXNET3_IT_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _VMXNET3_IT_MSIX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMXNET3_IT_MSIX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_2:
	mov	w20, #1
	str	w20, [x19, #12]
	ldr	x0, [x19, #40]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh13:
	adrp	x8, _VMXNET3_IT_INTX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VMXNET3_IT_INTX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	w20, [x19, #24]
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_GET_CONF_INTR,4,2  ; @VMXNET3_CMD_GET_CONF_INTR
	.comm	_VMXNET3_IT_AUTO,4,2            ; @VMXNET3_IT_AUTO
	.comm	_VMXNET3_IT_MSIX,4,2            ; @VMXNET3_IT_MSIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using INTx interrupt, #Rx queues: 1.\n"

	.comm	_VMXNET3_IT_INTX,4,2            ; @VMXNET3_IT_INTX
	.comm	_VMXNET3_INTR_BUDDYSHARE,8,3    ; @VMXNET3_INTR_BUDDYSHARE
	.comm	_VMXNET3_INTR_TXSHARE,8,3       ; @VMXNET3_INTR_TXSHARE
	.comm	_VMXNET3_IT_MSI,4,2             ; @VMXNET3_IT_MSI
	.comm	_VMXNET3_LINUX_MIN_MSIX_VECT,4,2 ; @VMXNET3_LINUX_MIN_MSIX_VECT
	.no_dead_strip	_vmxnet3_alloc_intr_resources
.subsections_via_symbols
