	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pioavailregs
_init_pioavailregs:                     ## @init_pioavailregs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	48(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leaq	(%rdx,%rdx), %rcx
	movslq	(%rbx), %rsi
	leaq	(%rcx,%rsi,4), %rcx
	notq	%rdx
	andq	%rcx, %rdx
	leaq	(%rax,%rdx), %rcx
	movq	%rcx, 40(%rbx)
	leaq	(%rax,%rdx), %rcx
	addq	$4, %rcx
	movl	$0, (%rax,%rdx)
	cmpl	$0, 4(%rbx)
	jle	LBB0_5
## %bb.3:
	movq	32(%rbx), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, (%rax,%rdx,8)
	movl	$0, (%rcx)
	addq	$4, %rcx
	incq	%rdx
	movslq	4(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_4
LBB0_5:
	movq	%rcx, 8(%rbx)
	movb	$0, (%rcx)
	subl	24(%rbx), %ecx
	movq	(%r14), %rax
	movslq	%ecx, %rcx
	subq	%rcx, %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_qib_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate PIOavail reg area in memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.no_dead_strip	_init_pioavailregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pioavailregs
_init_pioavailregs:                     ; @init_pioavailregs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x0, [x0, #56]
	ldr	x1, [x20]
	add	x2, x19, #48
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _L1_CACHE_BYTES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _L1_CACHE_BYTES@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	ldrsw	x9, [x19]
	lsl	x9, x9, #2
	add	x9, x9, x8, lsl #1
	mvn	w8, w8
	sxtw	x8, w8
	and	x8, x9, x8
	add	x8, x0, x8
	str	x8, [x19, #40]
	str	wzr, [x8], #4
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #32]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [x10, x9, lsl #3]
	str	wzr, [x8], #4
	add	x9, x9, #1
	ldrsw	x11, [x19, #4]
	cmp	x9, x11
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	str	x8, [x19, #8]
	strb	wzr, [x8]
	ldr	w9, [x19, #24]
	sub	w8, w8, w9
	ldr	x9, [x20]
	sub	x8, x9, w8, sxtw
	str	x8, [x19, #16]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate PIOavail reg area in memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.no_dead_strip	_init_pioavailregs
.subsections_via_symbols
