	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_change_quad_hash
_nes_change_quad_hash:                  ## @nes_change_quad_hash
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_nes_get_cqp_request
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movq	%r14, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%r15, (%rax)
	movq	_PAU_DEL_QH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	24(%r13), %rdi
	movq	%r14, %rsi
	callq	_nes_fill_init_cqp_wqe
	movq	_NES_CQP_MANAGE_QUAD_HASH@GOTPCREL(%rip), %rax
	movq	_NES_CQP_QP_DEL_HTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	24(%r13), %edi
	movq	_NES_CQP_QP_TYPE_IWARP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_NES_CQP_WQE_OPCODE_IDX@GOTPCREL(%rip), %rax
	movq	_NES_CQP_QP_CONTEXT_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_NES_CQP_QP_IWARP_STATE_RTS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_set_wqe_32bit_value
	movl	24(%r13), %edi
	movq	_NES_CQP_WQE_ID_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	callq	_set_wqe_32bit_value
	movq	(%r15), %rdx
	movl	24(%r13), %edi
	movq	_NES_CQP_QP_WQE_CONTEXT_LOW_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_wqe_64bit_value
	movq	_NES_DBG_PAU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_nes_debug
	movq	%r12, 16(%r13)
	movl	$1, (%r13)
	movq	_nes_chg_qh_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nes_post_cqp_request
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_NES_DBG_PAU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_kfree
	jmp	LBB0_5
LBB0_4:
	movq	_NES_DBG_PAU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_kfree
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nes_put_cqp_request
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_PAU,4,2                ## @NES_DBG_PAU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get a cqp_request.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PAU_DEL_QH,4,2                 ## @PAU_DEL_QH
	.comm	_NES_CQP_WQE_OPCODE_IDX,4,2     ## @NES_CQP_WQE_OPCODE_IDX
	.comm	_NES_CQP_MANAGE_QUAD_HASH,4,2   ## @NES_CQP_MANAGE_QUAD_HASH
	.comm	_NES_CQP_QP_DEL_HTE,4,2         ## @NES_CQP_QP_DEL_HTE
	.comm	_NES_CQP_QP_TYPE_IWARP,4,2      ## @NES_CQP_QP_TYPE_IWARP
	.comm	_NES_CQP_QP_CONTEXT_VALID,4,2   ## @NES_CQP_QP_CONTEXT_VALID
	.comm	_NES_CQP_QP_IWARP_STATE_RTS,4,2 ## @NES_CQP_QP_IWARP_STATE_RTS
	.comm	_NES_CQP_WQE_ID_IDX,4,2         ## @NES_CQP_WQE_ID_IDX
	.comm	_NES_CQP_QP_WQE_CONTEXT_LOW_IDX,4,2 ## @NES_CQP_QP_WQE_CONTEXT_LOW_IDX
L_.str.1:                               ## @.str.1
	.asciz	"Waiting for CQP completion for deleting the quad hash.\n"

	.comm	_nes_chg_qh_handler,4,2         ## @nes_chg_qh_handler
	.no_dead_strip	_nes_change_quad_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_change_quad_hash
_nes_change_quad_hash:                  ; @nes_change_quad_hash
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_nes_get_cqp_request
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	stp	x23, x19, [x0, #8]
	str	x21, [x0]
Lloh3:
	adrp	x8, _PAU_DEL_QH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAU_DEL_QH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	add	x0, x20, #24
	mov	x1, x19
	bl	_nes_fill_init_cqp_wqe
	ldr	w0, [x20, #24]
Lloh6:
	adrp	x8, _NES_CQP_WQE_OPCODE_IDX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NES_CQP_WQE_OPCODE_IDX@GOTPAGEOFF]
Lloh8:
	adrp	x9, _NES_CQP_MANAGE_QUAD_HASH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NES_CQP_MANAGE_QUAD_HASH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _NES_CQP_QP_DEL_HTE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NES_CQP_QP_DEL_HTE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _NES_CQP_QP_TYPE_IWARP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NES_CQP_QP_TYPE_IWARP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _NES_CQP_QP_CONTEXT_VALID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NES_CQP_QP_CONTEXT_VALID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _NES_CQP_QP_IWARP_STATE_RTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NES_CQP_QP_IWARP_STATE_RTS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_set_wqe_32bit_value
	ldr	w0, [x20, #24]
Lloh24:
	adrp	x8, _NES_CQP_WQE_ID_IDX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NES_CQP_WQE_ID_IDX@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	bl	_set_wqe_32bit_value
	ldr	x2, [x21]
	ldr	w0, [x20, #24]
Lloh27:
	adrp	x8, _NES_CQP_QP_WQE_CONTEXT_LOW_IDX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NES_CQP_QP_WQE_CONTEXT_LOW_IDX@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_set_wqe_64bit_value
Lloh30:
	adrp	x8, _NES_DBG_PAU@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NES_DBG_PAU@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nes_debug
	str	x22, [x20, #16]
	mov	w8, #1
	str	w8, [x20]
Lloh35:
	adrp	x8, _nes_chg_qh_handler@GOTPAGE
Lloh36:
	ldr	x8, [x8, _nes_chg_qh_handler@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	add	x0, x20, #4
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x19
	mov	x1, x20
	bl	_nes_post_cqp_request
	mov	w21, #0
	b	LBB0_5
LBB0_3:
Lloh38:
	adrp	x8, _NES_DBG_PAU@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NES_DBG_PAU@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, #0
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh46:
	adrp	x8, _NES_DBG_PAU@GOTPAGE
Lloh47:
	ldr	x8, [x8, _NES_DBG_PAU@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str@PAGE
Lloh50:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, #0
	bl	_kfree
	mov	x0, x19
	mov	x1, x20
	bl	_nes_put_cqp_request
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_PAU,4,2                ; @NES_DBG_PAU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get a cqp_request.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PAU_DEL_QH,4,2                 ; @PAU_DEL_QH
	.comm	_NES_CQP_WQE_OPCODE_IDX,4,2     ; @NES_CQP_WQE_OPCODE_IDX
	.comm	_NES_CQP_MANAGE_QUAD_HASH,4,2   ; @NES_CQP_MANAGE_QUAD_HASH
	.comm	_NES_CQP_QP_DEL_HTE,4,2         ; @NES_CQP_QP_DEL_HTE
	.comm	_NES_CQP_QP_TYPE_IWARP,4,2      ; @NES_CQP_QP_TYPE_IWARP
	.comm	_NES_CQP_QP_CONTEXT_VALID,4,2   ; @NES_CQP_QP_CONTEXT_VALID
	.comm	_NES_CQP_QP_IWARP_STATE_RTS,4,2 ; @NES_CQP_QP_IWARP_STATE_RTS
	.comm	_NES_CQP_WQE_ID_IDX,4,2         ; @NES_CQP_WQE_ID_IDX
	.comm	_NES_CQP_QP_WQE_CONTEXT_LOW_IDX,4,2 ; @NES_CQP_QP_WQE_CONTEXT_LOW_IDX
l_.str.1:                               ; @.str.1
	.asciz	"Waiting for CQP completion for deleting the quad hash.\n"

	.comm	_nes_chg_qh_handler,4,2         ; @nes_chg_qh_handler
	.no_dead_strip	_nes_change_quad_hash
.subsections_via_symbols
