	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_disable_queues_generic   ## -- Begin function fm10k_disable_queues_generic
	.p2align	4, 0x90
_fm10k_disable_queues_generic:          ## @fm10k_disable_queues_generic
	.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, %r14
	movq	%rdi, %r13
	movl	$0, 4(%rdi)
	movl	(%rdi), %edi
	callq	_FM10K_REMOVED
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	testq	%r14, %r14
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_FM10K_RXQCTL_ENABLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_FM10K_TXDCTL
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_FM10K_TXDCTL
	movq	_FM10K_TXDCTL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%r15d, %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fm10k_write_reg
	movq	%rbx, %rdi
	callq	_FM10K_RXQCTL
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_FM10K_RXQCTL
	movl	(%r12), %edx
	notl	%edx
	andl	%r15d, %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fm10k_write_reg
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_fm10k_write_flush
	movl	$1, %edi
	callq	_udelay
	movq	_FM10K_QUEUE_DISABLE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.5:
	movq	_FM10K_TXDCTL_ENABLE@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	%r14, %r12
	je	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_FM10K_TXDCTL
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	testl	%eax, (%r15)
	jne	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%r12, %rdi
	callq	_FM10K_RXQCTL
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_FM10K_RXQCTL_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$1, %rbx
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	$1, %edi
	callq	_udelay
	decq	%rbx
	jmp	LBB0_8
LBB0_13:
	movq	_FM10K_ERR_REQUESTS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ecx, %ecx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ## @FM10K_TXDCTL_ENABLE
	.comm	_FM10K_RXQCTL_ENABLE,4,2        ## @FM10K_RXQCTL_ENABLE
	.comm	_FM10K_QUEUE_DISABLE_TIMEOUT,8,3 ## @FM10K_QUEUE_DISABLE_TIMEOUT
	.comm	_FM10K_ERR_REQUESTS_PENDING,4,2 ## @FM10K_ERR_REQUESTS_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_disable_queues_generic   ; -- Begin function fm10k_disable_queues_generic
	.p2align	2
_fm10k_disable_queues_generic:          ; @fm10k_disable_queues_generic
	.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	x19, x1
	mov	x20, x0
	str	wzr, [x0, #4]
	ldr	w0, [x0]
	bl	_FM10K_REMOVED
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_15
; %bb.1:
Lloh0:
	adrp	x23, _FM10K_TXDCTL_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FM10K_TXDCTL_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _FM10K_RXQCTL_ENABLE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FM10K_RXQCTL_ENABLE@GOTPAGEOFF]
	cmp	x19, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	mov	x22, x0
	mov	x0, x21
	bl	_FM10K_TXDCTL
	mov	x1, x0
	ldr	w8, [x23]
	bic	w2, w22, w8
	mov	x0, x20
	bl	_fm10k_write_reg
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	mov	x22, x0
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	ldr	w8, [x24]
	bic	w2, w22, w8
	mov	x0, x20
	bl	_fm10k_write_reg
	add	x21, x21, #1
	cmp	x19, x21
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_fm10k_write_flush
	mov	w0, #1
	bl	_udelay
Lloh4:
	adrp	x8, _FM10K_QUEUE_DISABLE_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FM10K_QUEUE_DISABLE_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	x22, [x8]
	cbz	x22, LBB0_14
; %bb.5:
	mov	x21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cbz	x22, LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	x21, x19
	b.eq	LBB0_16
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	subs	x22, x22, #1
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #1
	bl	_udelay
	b	LBB0_8
LBB0_14:
Lloh7:
	adrp	x8, _FM10K_ERR_REQUESTS_PENDING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FM10K_ERR_REQUESTS_PENDING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_15:
	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
LBB0_16:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ; @FM10K_TXDCTL_ENABLE
	.comm	_FM10K_RXQCTL_ENABLE,4,2        ; @FM10K_RXQCTL_ENABLE
	.comm	_FM10K_QUEUE_DISABLE_TIMEOUT,8,3 ; @FM10K_QUEUE_DISABLE_TIMEOUT
	.comm	_FM10K_ERR_REQUESTS_PENDING,4,2 ; @FM10K_ERR_REQUESTS_PENDING
.subsections_via_symbols
