	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_restart_qps
_ehea_restart_qps:                      ## @ehea_restart_qps
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	16(%rax), %r15
	movq	$0, -120(%rbp)
	movl	$0, -60(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rcx
	leaq	(%rcx,%rbx), %rax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rcx,%rbx), %r14
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ehea_gen_smrs
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_ehea_update_rqs
	movl	(%r15), %r12d
	movl	(%r14), %ebx
	movq	_H_QPCB0_ALL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_EHEA_BMASK_SET
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_ehea_h_query_ehea_qp
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_H_QP_CR_RES_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	shll	$8, %eax
	movl	%eax, (%rbx)
	movq	_H_QP_CR_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %ebx
	movl	(%r14), %r12d
	movq	_H_QPCB0_QP_CTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_EHEA_BMASK_SET
	subq	$8, %rsp
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	_H_SUCCESS@GOTPCREL(%rip), %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	%rbx, %r8
	leaq	-120(%rbp), %r9
	leaq	-60(%rbp), %rax
	pushq	%rax
	pushq	%rax
	pushq	%r9
	callq	_ehea_h_modify_ehea_qp
	addq	$32, %rsp
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %r15d
	movl	(%r14), %r14d
	movl	(%r13), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_EHEA_BMASK_SET
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	callq	_ehea_h_query_ehea_qp
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx), %esi
	xorl	%r12d, %r12d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ehea_refill_rq1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ehea_refill_rq2
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ehea_refill_rq3
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %rcx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_3
	jmp	LBB0_16
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_page
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creation of shared memory regions failed\n"

	.comm	_H_QPCB0_ALL,4,2                ## @H_QPCB0_ALL
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"query_ehea_qp failed (1)\n"

	.comm	_H_QP_CR_RES_STATE,4,2          ## @H_QP_CR_RES_STATE
	.comm	_H_QP_CR_ENABLED,4,2            ## @H_QP_CR_ENABLED
	.comm	_H_QPCB0_QP_CTL_REG,4,2         ## @H_QPCB0_QP_CTL_REG
L_.str.2:                               ## @.str.2
	.asciz	"modify_ehea_qp failed (1)\n"

L_.str.3:                               ## @.str.3
	.asciz	"query_ehea_qp failed (2)\n"

	.no_dead_strip	_ehea_restart_qps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_restart_qps
_ehea_restart_qps:                      ; @ehea_restart_qps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x22, [x0, #16]
	str	xzr, [sp, #40]
	str	wzr, [sp, #36]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, #0
	mov	x28, #0
Lloh3:
	adrp	x25, _H_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _H_SUCCESS@GOTPAGEOFF]
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x26, x22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x21, #8]
	add	x22, x20, x27
	ldr	x23, [x22, #8]
	mov	x0, x22
	bl	_ehea_gen_smrs
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_ehea_update_rqs
	ldr	w24, [x26]
	ldr	w21, [x23]
Lloh5:
	adrp	x8, _H_QPCB0_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H_QPCB0_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_EHEA_BMASK_SET
	mov	x3, x0
	mov	x0, x24
	mov	w1, #0
	mov	x2, x21
	mov	x21, x25
	mov	x4, x19
	bl	_ehea_h_query_ehea_qp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _H_QP_CR_RES_STATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _H_QP_CR_RES_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	lsl	w8, w8, #8
	str	w8, [x19]
Lloh11:
	adrp	x9, _H_QP_CR_ENABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _H_QP_CR_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w24, [x26]
	ldr	w21, [x23]
Lloh14:
	adrp	x8, _H_QPCB0_QP_CTL_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H_QPCB0_QP_CTL_REG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_EHEA_BMASK_SET
	mov	x3, x0
	add	x8, sp, #36
	str	x8, [sp]
	add	x5, sp, #40
	add	x6, sp, #40
	add	x7, sp, #36
	mov	x0, x24
	mov	w1, #0
	mov	x2, x21
	mov	x4, x19
	bl	_ehea_h_modify_ehea_qp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x26]
	ldr	w23, [x23]
Lloh17:
	adrp	x8, _H_QPCB0_ALL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H_QPCB0_ALL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_EHEA_BMASK_SET
	mov	x3, x0
	mov	x0, x24
	mov	w1, #0
	mov	x2, x23
	mov	x4, x19
	bl	_ehea_h_query_ehea_qp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, x27]
	mov	x0, x22
	mov	w2, #0
	bl	_ehea_refill_rq1
	mov	x0, x22
	mov	w1, #0
	bl	_ehea_refill_rq2
	mov	x0, x22
	mov	w1, #0
	bl	_ehea_refill_rq3
	add	x28, x28, #1
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	ldrsw	x8, [x21]
	add	x27, x27, #16
	cmp	x28, x8
	b.lt	LBB0_3
	b	LBB0_14
LBB0_8:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_9:
	mov	x24, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_err
	b	LBB0_15
LBB0_10:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_err
LBB0_14:
	mov	w24, #0
LBB0_15:
	mov	x0, x19
	bl	_free_page
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creation of shared memory regions failed\n"

	.comm	_H_QPCB0_ALL,4,2                ; @H_QPCB0_ALL
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"query_ehea_qp failed (1)\n"

	.comm	_H_QP_CR_RES_STATE,4,2          ; @H_QP_CR_RES_STATE
	.comm	_H_QP_CR_ENABLED,4,2            ; @H_QP_CR_ENABLED
	.comm	_H_QPCB0_QP_CTL_REG,4,2         ; @H_QPCB0_QP_CTL_REG
l_.str.2:                               ; @.str.2
	.asciz	"modify_ehea_qp failed (1)\n"

l_.str.3:                               ; @.str.3
	.asciz	"query_ehea_qp failed (2)\n"

	.no_dead_strip	_ehea_restart_qps
.subsections_via_symbols
