	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptable_alloc
_ptable_alloc:                          ## @ptable_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_meye@GOTPCREL(%rip), %r12
	movq	24(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	16(%r12), %rbx
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	16(%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_MCHIP_NB_PAGES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.4:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdx
	callq	_dma_alloc_coherent
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	24(%r12), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx,%r14,8)
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_2:
	movq	$0, (%r12)
	jmp	LBB0_15
LBB0_6:
	movq	8(%r12), %r15
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	(%r15), %rcx
	movq	%rcx, -48(%rbp)
	movq	16(%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	(%rax), %rdx
	callq	_dma_free_coherent
	cmpq	$1, %r14
	je	LBB0_11
## %bb.9:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	movq	24(%r12), %rax
	movq	(%r15,%rbx,8), %rcx
	movq	%rcx, -48(%rbp)
	movl	(%r13), %esi
	movq	(%rax,%rbx,8), %rdx
	callq	_dma_free_coherent
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_10
LBB0_11:
	movq	8(%r12), %r15
	movl	$-1, %r14d
	jmp	LBB0_12
LBB0_7:
	movl	$-1, %r14d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
LBB0_12:
	movq	(%r12), %rcx
	movq	16(%r12), %rdi
	movl	(%r13), %esi
	movq	%r15, %rdx
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_meye,32,3                      ## @meye
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MCHIP_NB_PAGES,4,2             ## @MCHIP_NB_PAGES
	.no_dead_strip	_ptable_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptable_alloc
_ptable_alloc:                          ; @ptable_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _meye@GOTPAGE
Lloh1:
	ldr	x19, [x19, _meye@GOTPAGEOFF]
	ldr	x0, [x19, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x20, [x19, #16]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x2, x19
	bl	_dma_alloc_coherent
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.2:
Lloh6:
	adrp	x24, _MCHIP_NB_PAGES@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MCHIP_NB_PAGES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	w1, [x21]
	ldr	w3, [x23]
	add	x2, sp, #8
	bl	_dma_alloc_coherent
	ldr	x8, [x19, #24]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #24]
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x20, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_15
LBB0_7:
	ldr	x20, [x19, #8]
	cbz	x22, LBB0_12
; %bb.8:
	ldr	x3, [x20]
	str	x3, [sp, #8]
	ldr	x0, [x19, #16]
	ldr	w1, [x21]
	ldr	x2, [x8]
	bl	_dma_free_coherent
	cmp	x22, #1
	b.eq	LBB0_11
; %bb.9:
	mov	w23, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x23, #3
	ldr	x3, [x20, x8]
	str	x3, [sp, #8]
	ldp	x0, x9, [x19, #16]
	ldr	w1, [x21]
	ldr	x2, [x9, x8]
	bl	_dma_free_coherent
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_10
LBB0_11:
	ldr	x20, [x19, #8]
LBB0_12:
	ldr	x0, [x19, #16]
	ldr	w1, [x21]
	ldr	x3, [x19]
	mov	x2, x20
	bl	_dma_free_coherent
	str	xzr, [x19, #8]
LBB0_13:
	str	xzr, [x19]
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_meye,32,3                      ; @meye
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MCHIP_NB_PAGES,4,2             ; @MCHIP_NB_PAGES
	.no_dead_strip	_ptable_alloc
.subsections_via_symbols
