	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_piobuf_state
_init_piobuf_state:                     ## @init_piobuf_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	80(%rdi), %rdi
	movq	_QIB_SENDCTRL_DISARM_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*88(%rbx)
	movq	%rbx, %rsi
	cmpl	$0, (%rbx)
	movq	%rbx, %r15
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_QIB_SENDCTRL_FLUSH@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%rsi), %rdi
	addq	%rbx, %rdi
	movl	(%r14), %esi
	callq	*88(%r15)
	movq	%r15, %rsi
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	12(%rsi), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movl	4(%rsi), %edx
	subl	8(%rsi), %edx
	movq	64(%rsi), %rax
	imull	%ecx, %edx
	movslq	%edx, %rcx
	subq	%rcx, %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 72(%rsi)
	cmpl	$0, 16(%rsi)
	jle	LBB0_7
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%rsi), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le64_to_cpu
	movq	%r15, %rsi
	movq	48(%r15), %rdi
	movq	%rax, (%rdi,%rbx,8)
	incq	%rbx
	movslq	16(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
	jmp	LBB0_8
LBB0_7:
	movq	48(%rsi), %rdi
	xorl	%ebx, %ebx
LBB0_8:
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_11
## %bb.9:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rdi
	movq	$0, (%rdi,%rbx,8)
	incq	%rbx
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jg	LBB0_10
LBB0_11:
	movq	32(%r15), %rdx
	addq	40(%r15), %rdx
	movq	_TXCHK_CHG_TYPE_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_qib_chg_pioavailkernel
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*24(%rdi)                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_SENDCTRL_DISARM_ALL,4,2    ## @QIB_SENDCTRL_DISARM_ALL
	.comm	_QIB_SENDCTRL_FLUSH,4,2         ## @QIB_SENDCTRL_FLUSH
	.comm	_TXCHK_CHG_TYPE_KERN,4,2        ## @TXCHK_CHG_TYPE_KERN
	.no_dead_strip	_init_piobuf_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_piobuf_state
_init_piobuf_state:                     ; @init_piobuf_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	x0, x8, [x0, #80]
Lloh0:
	adrp	x9, _QIB_SENDCTRL_DISARM_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_SENDCTRL_DISARM_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh3:
	adrp	x21, _QIB_SENDCTRL_FLUSH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _QIB_SENDCTRL_FLUSH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #80]
	add	x0, x20, x9
	ldr	w1, [x21]
	blr	x8
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_5
; %bb.4:
	ldp	w9, w10, [x19, #4]
	sub	w9, w9, w10
	ldr	x10, [x19, #64]
	mul	w8, w9, w8
	sub	x8, x10, w8, sxtw
	b	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
	str	x8, [x19, #72]
	ldr	w8, [x19, #16]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w0, [x8, x20, lsl #2]
	bl	_le64_to_cpu
	mov	x8, x0
	ldr	x0, [x19, #48]
	str	x8, [x0, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x19, #16]
	cmp	x20, x8
	b.lt	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w20, #0
	ldr	x0, [x19, #48]
LBB0_10:
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_13
; %bb.11:
	mov	w8, w20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #48]
	add	x20, x8, #1
	str	xzr, [x0, x8, lsl #3]
	bl	_ARRAY_SIZE
	mov	x8, x20
	cmp	w0, w20
	b.gt	LBB0_12
LBB0_13:
	ldp	x9, x8, [x19, #32]
	add	x2, x9, x8
Lloh5:
	adrp	x8, _TXCHK_CHG_TYPE_KERN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXCHK_CHG_TYPE_KERN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x4, #0
	bl	_qib_chg_pioavailkernel
	ldr	x1, [x19, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_SENDCTRL_DISARM_ALL,4,2    ; @QIB_SENDCTRL_DISARM_ALL
	.comm	_QIB_SENDCTRL_FLUSH,4,2         ; @QIB_SENDCTRL_FLUSH
	.comm	_TXCHK_CHG_TYPE_KERN,4,2        ; @TXCHK_CHG_TYPE_KERN
	.no_dead_strip	_init_piobuf_state
.subsections_via_symbols
