	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_disarm_7322_senderrbufs
_qib_disarm_7322_senderrbufs:           ## @qib_disarm_7322_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movl	4(%r12), %esi
	addl	(%r12), %esi
	movq	_NUM_VL15_BUFS@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%rsi), %eax
	decl	%eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	_kr_sendbuffererror@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_qib_read_kreg64
	movq	%rax, -80(%rbp,%rbx,8)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_qib_write_kreg
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_5:
	testl	%r14d, %r14d
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_qib_disarm_piobufs_set
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_VL15_BUFS,4,2              ## @NUM_VL15_BUFS
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_kr_sendbuffererror,8,3         ## @kr_sendbuffererror
	.no_dead_strip	_qib_disarm_7322_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_7322_senderrbufs
_qib_disarm_7322_senderrbufs:           ; @qib_disarm_7322_senderrbufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x19, [x0]
	ldp	w8, w9, [x19]
Lloh3:
	adrp	x10, _NUM_VL15_BUFS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NUM_VL15_BUFS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _BITS_PER_LONG@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BITS_PER_LONG@GOTPAGEOFF]
	add	w8, w9, w8
	add	w20, w8, w10
Lloh8:
	ldr	w8, [x11]
	add	w9, w8, w20
	sub	w9, w9, #1
	sdiv	w21, w9, w8
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	w25, #0
Lloh9:
	adrp	x23, _kr_sendbuffererror@GOTPAGE
Lloh10:
	ldr	x23, [x23, _kr_sendbuffererror@GOTPAGEOFF]
	add	x24, sp, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x21, x22
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x22, x8
	mov	x0, x19
	bl	_qib_read_kreg64
	str	x0, [x24, x22, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	x8, [x23]
	add	x1, x22, x8
	mov	x0, x19
	bl	_qib_write_kreg
	mov	w25, #1
	b	LBB0_2
LBB0_5:
	cbz	w25, LBB0_7
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_qib_disarm_piobufs_set
LBB0_7:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_VL15_BUFS,4,2              ; @NUM_VL15_BUFS
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_kr_sendbuffererror,8,3         ; @kr_sendbuffererror
	.no_dead_strip	_qib_disarm_7322_senderrbufs
.subsections_via_symbols
