	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_chk_errormask
_ipath_chk_errormask:                   ## @ipath_chk_errormask
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_IPATH_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_6
## %bb.2:
	movq	32(%rbx), %rax
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_read_kreg64
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	incl	_ipath_chk_errormask.fixed(%rip)
	movq	32(%rbx), %rax
	movl	20(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_read_kreg64
	movq	%rax, %r15
	movq	32(%rbx), %rax
	movl	16(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_read_kreg32
	movl	%eax, %r12d
	movq	(%rbx), %rdx
	movq	32(%rbx), %rax
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_write_kreg
	testq	%r15, 16(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_INFINIPATH_C_FREEZEMODE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
LBB0_5:
	movq	32(%rbx), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	(%rbx), %r8
	movq	24(%rbx), %rdi
	movl	_ipath_chk_errormask.fixed(%rip), %edx
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	movl	%r12d, %r9d
	callq	_dev_info
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	_ipath_chk_errormask.fixed(%rip), %esi
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipath_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ipath_chk_errormask.fixed,4,2 ## @ipath_chk_errormask.fixed
	.comm	_IPATH_INITTED,4,2              ## @IPATH_INITTED
	.comm	_INFINIPATH_C_FREEZEMODE,4,2    ## @INFINIPATH_C_FREEZEMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"errormask fixed(%u) %lx -> %lx, ctrl %x hwerr %lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"errormask fixed(%u) %lx -> %lx, no freeze\n"

	.no_dead_strip	_ipath_chk_errormask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_chk_errormask
_ipath_chk_errormask:                   ; @ipath_chk_errormask
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _IPATH_INITTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPATH_INITTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #12]
	mov	x0, x19
	bl	_ipath_read_kreg64
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	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_4:
	mov	x20, x0
	adrp	x23, _ipath_chk_errormask.fixed@PAGE
	ldr	w8, [x23, _ipath_chk_errormask.fixed@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x23, _ipath_chk_errormask.fixed@PAGEOFF]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #20]
	mov	x0, x19
	bl	_ipath_read_kreg64
	mov	x21, x0
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #16]
	mov	x0, x19
	bl	_ipath_read_kreg32
	mov	x22, x0
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #12]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #16]
	tst	x8, x21
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _INFINIPATH_C_FREEZEMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFINIPATH_C_FREEZEMODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
LBB0_6:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	x0, [x19, #24]
	ldr	w2, [x23, _ipath_chk_errormask.fixed@PAGEOFF]
	ldr	x4, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x5, x22
	mov	x6, 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
	b	_dev_info
LBB0_7:
	ldr	w1, [x23, _ipath_chk_errormask.fixed@PAGEOFF]
	ldr	x3, [x19]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	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
	b	_ipath_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ipath_chk_errormask.fixed,4,2 ; @ipath_chk_errormask.fixed
	.comm	_IPATH_INITTED,4,2              ; @IPATH_INITTED
	.comm	_INFINIPATH_C_FREEZEMODE,4,2    ; @INFINIPATH_C_FREEZEMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"errormask fixed(%u) %lx -> %lx, ctrl %x hwerr %lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"errormask fixed(%u) %lx -> %lx, no freeze\n"

	.no_dead_strip	_ipath_chk_errormask
.subsections_via_symbols
