	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_enable_tx_ring
_fm10k_enable_tx_ring:                  ## @fm10k_enable_tx_ring
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	4(%rdi), %rbx
	movl	(%rsi), %r15d
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	movq	_FM10K_TXDCTL_ENABLE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.1:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.2:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.4:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.6:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.7:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.8:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.9:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	jne	LBB0_11
## %bb.10:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	testl	%eax, (%r12)
	je	LBB0_12
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ## @FM10K_TXDCTL_ENABLE
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not enable Tx Queue %d\n"

	.no_dead_strip	_fm10k_enable_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_enable_tx_ring
_fm10k_enable_tx_ring:                  ; @fm10k_enable_tx_ring
	.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	x20, x0
	add	x21, x0, #4
	ldr	w19, [x1]
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
Lloh0:
	adrp	x22, _FM10K_TXDCTL_ENABLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FM10K_TXDCTL_ENABLE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.1:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.2:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.3:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.4:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.5:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.6:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.7:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.8:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.9:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_12
LBB0_11:
	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_12:
Lloh2:
	adrp	x8, _drv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	ldr	w2, [x20]
	mov	x0, x20
	mov	x4, x19
	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
	b	_netif_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ; @FM10K_TXDCTL_ENABLE
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not enable Tx Queue %d\n"

	.no_dead_strip	_fm10k_enable_tx_ring
.subsections_via_symbols
