	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_phyerrthreshold
_set_phyerrthreshold:                   ## @set_phyerrthreshold
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	movl	(%rdi), %r9d
	movq	_INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	movl	%r9d, %eax
	shrl	%cl, %eax
	movq	_INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%esi, %eax
	cmpl	%edx, %eax
	je	LBB0_2
## %bb.1:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	notl	%esi
	andl	%esi, %r9d
	movl	%r9d, (%rdi)
	movb	(%r8), %cl
	shll	%cl, %edx
	orl	%r9d, %edx
	movl	%edx, (%rdi)
	movq	8(%rdi), %rax
	movl	(%rax), %esi
	callq	_ipath_write_kreg
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT,4,2 ## @INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK,4,2 ## @INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK
	.no_dead_strip	_set_phyerrthreshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_phyerrthreshold
_set_phyerrthreshold:                   ; @set_phyerrthreshold
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT@GOTPAGEOFF]
	ldr	w10, [x8]
	lsr	w12, w9, w10
Lloh2:
	adrp	x11, _INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	and	w12, w12, w11
	cmp	w12, w1
	b.eq	LBB0_2
; %bb.1:
	lsl	w10, w11, w10
	bic	w9, w9, w10
	str	w9, [x0]
	ldr	w8, [x8]
	lsl	w8, w1, w8
	orr	w2, w8, w9
	str	w2, [x0]
	ldr	x8, [x0, #8]
	ldr	w1, [x8]
	bl	_ipath_write_kreg
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT,4,2 ; @INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK,4,2 ; @INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK
	.no_dead_strip	_set_phyerrthreshold
.subsections_via_symbols
