	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	48(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leaq	(%rdx,%rdx), %rsi
	movslq	(%rbx), %rdi
	leaq	(%rsi,%rdi,4), %rsi
	notq	%rdx
	andq	%rsi, %rdx
	leaq	(%rax,%rdx), %rsi
	movq	%rsi, 24(%rbx)
	movl	32(%rbx), %esi
	movl	%esi, (%rax,%rdx)
	addq	%rdx, %rax
	addq	$4, %rax
	movq	%rax, 8(%rbx)
	movl	(%rcx), %eax
	addl	$-4, %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ipath_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @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	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x0, [x0, #56]
Lloh2:
	ldr	w1, [x8]
	add	x2, x19, #48
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _L1_CACHE_BYTES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _L1_CACHE_BYTES@GOTPAGEOFF]
	ldrsw	x10, [x9]
	ldrsw	x11, [x19]
	lsl	x11, x11, #2
	add	x11, x11, x10, lsl #1
	mvn	w10, w10
	sxtw	x10, w10
	and	x10, x11, x10
	add	x8, x8, x10
	str	x8, [x19, #24]
	ldr	w10, [x19, #32]
	str	w10, [x8], #4
	str	x8, [x19, #8]
	ldr	w8, [x9]
	sub	w8, w8, #4
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @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
