	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_kdeth_qp
_init_kdeth_qp:                         ## @init_kdeth_qp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_kdeth_qp@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	cmpl	$255, %edx
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dd_dev_err
	jmp	LBB0_3
LBB0_2:
	testl	%edx, %edx
	jne	LBB0_4
LBB0_3:
	movq	_DEFAULT_KDETH_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r14)
LBB0_4:
	movq	_SEND_BTH_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEND_BTH_QP_KDETH_QP_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_SEND_BTH_QP_KDETH_QP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	%rbx, %rdi
	callq	_write_csr
	movq	_RCV_BTH_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCV_BTH_QP_KDETH_QP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r14), %edx
	movq	_RCV_BTH_QP_KDETH_QP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kdeth_qp,4,2                   ## @kdeth_qp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid KDETH queue pair prefix, ignoring"

	.comm	_DEFAULT_KDETH_QP,4,2           ## @DEFAULT_KDETH_QP
	.comm	_SEND_BTH_QP,4,2                ## @SEND_BTH_QP
	.comm	_SEND_BTH_QP_KDETH_QP_MASK,4,2  ## @SEND_BTH_QP_KDETH_QP_MASK
	.comm	_SEND_BTH_QP_KDETH_QP_SHIFT,4,2 ## @SEND_BTH_QP_KDETH_QP_SHIFT
	.comm	_RCV_BTH_QP,4,2                 ## @RCV_BTH_QP
	.comm	_RCV_BTH_QP_KDETH_QP_MASK,4,2   ## @RCV_BTH_QP_KDETH_QP_MASK
	.comm	_RCV_BTH_QP_KDETH_QP_SHIFT,4,2  ## @RCV_BTH_QP_KDETH_QP_SHIFT
	.no_dead_strip	_init_kdeth_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_kdeth_qp
_init_kdeth_qp:                         ; @init_kdeth_qp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _kdeth_qp@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kdeth_qp@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #255
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dd_dev_err
	b	LBB0_3
LBB0_2:
	cbnz	w8, LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _DEFAULT_KDETH_QP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DEFAULT_KDETH_QP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
Lloh7:
	adrp	x9, _SEND_BTH_QP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SEND_BTH_QP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
Lloh10:
	adrp	x9, _SEND_BTH_QP_KDETH_QP_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SEND_BTH_QP_KDETH_QP_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh13:
	adrp	x9, _SEND_BTH_QP_KDETH_QP_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SEND_BTH_QP_KDETH_QP_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	mov	x0, x19
	bl	_write_csr
Lloh16:
	adrp	x8, _RCV_BTH_QP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RCV_BTH_QP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh19:
	adrp	x9, _RCV_BTH_QP_KDETH_QP_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RCV_BTH_QP_KDETH_QP_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _RCV_BTH_QP_KDETH_QP_SHIFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _RCV_BTH_QP_KDETH_QP_SHIFT@GOTPAGEOFF]
	and	w8, w9, w8
Lloh24:
	ldr	w9, [x10]
	lsl	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_csr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_kdeth_qp,4,2                   ; @kdeth_qp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid KDETH queue pair prefix, ignoring"

	.comm	_DEFAULT_KDETH_QP,4,2           ; @DEFAULT_KDETH_QP
	.comm	_SEND_BTH_QP,4,2                ; @SEND_BTH_QP
	.comm	_SEND_BTH_QP_KDETH_QP_MASK,4,2  ; @SEND_BTH_QP_KDETH_QP_MASK
	.comm	_SEND_BTH_QP_KDETH_QP_SHIFT,4,2 ; @SEND_BTH_QP_KDETH_QP_SHIFT
	.comm	_RCV_BTH_QP,4,2                 ; @RCV_BTH_QP
	.comm	_RCV_BTH_QP_KDETH_QP_MASK,4,2   ; @RCV_BTH_QP_KDETH_QP_MASK
	.comm	_RCV_BTH_QP_KDETH_QP_SHIFT,4,2  ; @RCV_BTH_QP_KDETH_QP_SHIFT
	.no_dead_strip	_init_kdeth_qp
.subsections_via_symbols
