	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_tq_create
_vmxnet3_tq_create:                     ## @vmxnet3_tq_create
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, %edi
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 80(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 56(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
LBB0_4:
	callq	_BUG_ON
	movq	(%r14), %rdi
	movslq	24(%rbx), %rsi
	shlq	$2, %rsi
	leaq	40(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	imulq	72(%rbx), %rsi
	leaq	88(%rbx), %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 80(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r14), %rdi
	movslq	48(%rbx), %rsi
	shlq	$2, %rsi
	leaq	64(%rbx), %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	movslq	24(%rbx), %rsi
	movq	(%r14), %rdi
	leaq	16(%rbx), %rdx
	movl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, %rcx
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movl	8(%r14), %edi
	callq	_netdev_err
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vmxnet3_tq_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate tx ring\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate tx data ring\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate tx comp ring\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vmxnet3_tq_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_tq_create
_vmxnet3_tq_create:                     ; @vmxnet3_tq_create
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #80]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_15
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_BUG_ON
	ldr	x0, [x19]
	ldrsw	x8, [x20, #24]
	lsl	x1, x8, #2
	add	x2, x20, #40
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x20, #32]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x19]
	ldr	x8, [x20, #72]
	ldr	x9, [x20]
	mul	x1, x9, x8
	add	x2, x20, #88
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x20, #80]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x0, [x19]
	ldrsw	x8, [x20, #48]
	lsl	x1, x8, #2
	add	x2, x20, #64
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x20, #56]
	cbz	x0, LBB0_11
; %bb.7:
	ldrsw	x1, [x20, #24]
	ldr	x0, [x19]
	add	x2, x20, #16
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x20, #8]
	cbz	x0, LBB0_13
; %bb.8:
	mov	w0, #0
	b	LBB0_14
LBB0_9:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	ldr	w0, [x19, #8]
	bl	_netdev_err
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_vmxnet3_tq_destroy
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
LBB0_15:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate tx ring\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate tx data ring\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate tx comp ring\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vmxnet3_tq_create
.subsections_via_symbols
