	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_disable_after_error        ## -- Begin function qib_disable_after_error
	.p2align	4, 0x90
_qib_disable_after_error:               ## @qib_disable_after_error
	.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	%rdi, %r14
	movl	(%rdi), %ecx
	movq	_QIB_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_8
## %bb.1:
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	32(%r14), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	8(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_8
## %bb.3:
	movl	$1, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QIB_PRESENT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%r13), %rbx
	movq	_QIB_IB_LINKDOWN_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qib_set_linkstate
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*24(%r14)
	movq	8(%r14), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_QIB_STATUS_IB_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	(%r15,%r13), %rdx
	andl	%ecx, (%rdx)
	cmpq	%rax, %r12
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r14), %r15
	movl	(%r14), %ecx
	incq	%r12
	addq	$8, %r13
	jmp	LBB0_4
LBB0_8:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_QIB_STATUS_HWERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
	.comm	_QIB_PRESENT,4,2                ## @QIB_PRESENT
	.comm	_QIB_IB_LINKDOWN_DISABLE,4,2    ## @QIB_IB_LINKDOWN_DISABLE
	.comm	_QIB_STATUS_IB_READY,4,2        ## @QIB_STATUS_IB_READY
	.comm	_QIB_STATUS_HWERROR,4,2         ## @QIB_STATUS_HWERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_disable_after_error        ; -- Begin function qib_disable_after_error
	.p2align	2
_qib_disable_after_error:               ; @qib_disable_after_error
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QIB_INITTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_INITTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	bic	w9, w8, w9
	str	w9, [x19]
	ldr	x21, [x19, #32]
	cbz	x21, LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x22, #0
	mov	w23, #1
Lloh3:
	adrp	x24, _QIB_PRESENT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _QIB_PRESENT@GOTPAGEOFF]
Lloh5:
	adrp	x25, _QIB_STATUS_IB_READY@GOTPAGE
Lloh6:
	ldr	x25, [x25, _QIB_STATUS_IB_READY@GOTPAGEOFF]
Lloh7:
	adrp	x26, _QIB_IB_LINKDOWN_DISABLE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _QIB_IB_LINKDOWN_DISABLE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x21, x22
	ldr	w1, [x26]
	mov	x0, x20
	bl	_qib_set_linkstate
	ldr	x8, [x19, #24]
	mov	x0, x20
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	ldr	x10, [x21, x22]
	ldr	w11, [x10]
	bic	w9, w11, w9
	str	w9, [x10]
	cmp	x23, x8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x19, #32]
	ldr	w9, [x19]
	add	x23, x23, #1
	add	x22, x22, #8
	b	LBB0_4
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
Lloh9:
	adrp	x9, _QIB_STATUS_HWERROR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QIB_STATUS_HWERROR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
	.comm	_QIB_PRESENT,4,2                ; @QIB_PRESENT
	.comm	_QIB_IB_LINKDOWN_DISABLE,4,2    ; @QIB_IB_LINKDOWN_DISABLE
	.comm	_QIB_STATUS_IB_READY,4,2        ; @QIB_STATUS_IB_READY
	.comm	_QIB_STATUS_HWERROR,4,2         ; @QIB_STATUS_HWERROR
.subsections_via_symbols
