	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_disarm_7220_senderrbufs
_qib_disarm_7220_senderrbufs:           ## @qib_disarm_7220_senderrbufs
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rbx
	movq	_kr_sendbuffererror@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_qib_read_kreg64
	movq	%rax, %r15
	movq	%rax, -64(%rbp)
	movq	(%r12), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	callq	_qib_read_kreg64
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	movq	(%r12), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	callq	_qib_read_kreg64
	movq	%rax, -48(%rbp)
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	(%rbx), %rdx
	addq	8(%rbx), %rdx
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qib_disarm_piobufs_set
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kr_sendbuffererror,8,3         ## @kr_sendbuffererror
	.no_dead_strip	_qib_disarm_7220_senderrbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_disarm_7220_senderrbufs
_qib_disarm_7220_senderrbufs:           ; @qib_disarm_7220_senderrbufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
Lloh3:
	adrp	x22, _kr_sendbuffererror@GOTPAGE
Lloh4:
	ldr	x22, [x22, _kr_sendbuffererror@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_qib_read_kreg64
	mov	x20, x0
	str	x0, [sp]
	ldr	x8, [x22]
	add	x1, x8, #1
	mov	x0, x19
	bl	_qib_read_kreg64
	mov	x21, x0
	str	x0, [sp, #8]
	ldr	x8, [x22]
	add	x1, x8, #2
	mov	x0, x19
	bl	_qib_read_kreg64
	str	x0, [sp, #16]
	cmp	x20, #0
	ccmp	x21, #0, #0, eq
	ccmp	x0, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	ldp	x9, x8, [x19]
	add	x2, x9, x8
	mov	x1, sp
	mov	x0, x19
	bl	_qib_disarm_piobufs_set
LBB0_2:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_kr_sendbuffererror,8,3         ; @kr_sendbuffererror
	.no_dead_strip	_qib_disarm_7220_senderrbufs
.subsections_via_symbols
