	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw68_risc_buffer               ## -- Begin function tw68_risc_buffer
	.p2align	4, 0x90
_tw68_risc_buffer:                      ## @tw68_risc_buffer
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movl	24(%rbp), %r8d
	movl	16(%rbp), %edx
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%r13d, %eax
	setne	%cl
	leal	1(%rcx), %esi
	cmpl	%r15d, %eax
	cmovel	%ecx, %esi
	leal	(%rdx,%r14), %eax
	imull	%r8d, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	divl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	addl	%r8d, %eax
	incl	%eax
	imull	%esi, %eax
	leal	32(,%rax,8), %esi
	movl	%esi, (%rbx)
	leaq	24(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_UNSET@GOTPCREL(%rip), %r12
	cmpl	%r13d, (%r12)
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %ecx
	cmpl	%r15d, %ecx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_4:
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	$1, %ecx
	movl	%r14d, %r8d
	movl	16(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	$1
	movl	24(%rbp), %eax
	pushq	%rax
	callq	_tw68_risc_field
	addq	$16, %rsp
	movl	(%r12), %ecx
	cmpl	%r15d, %ecx
	je	LBB0_7
LBB0_6:
	xorl	%r10d, %r10d
	cmpl	%r13d, %ecx
	sete	%r10b
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	$2, %ecx
	movl	%r14d, %r8d
	movl	16(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r10
	movl	24(%rbp), %eax
	pushq	%rax
	callq	_tw68_risc_field
	addq	$16, %rsp
LBB0_7:
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %rdi
	addq	$8, %rdi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	16(%rbx), %rax
	subq	%rcx, %rax
	addq	$8, %rax
	movslq	(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	seta	%dil
	callq	_BUG_ON
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw68_risc_buffer               ; -- Begin function tw68_risc_buffer
	.p2align	2
_tw68_risc_buffer:                      ; @tw68_risc_buffer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x19, x1
Lloh0:
	adrp	x26, _UNSET@GOTPAGE
Lloh1:
	ldr	x26, [x26, _UNSET@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w3
	cset	w9, ne
	mov	w10, #1
	cinc	w10, w10, ne
	cmp	w8, w4
	csel	w8, w9, w10, eq
	add	w9, w6, w5
	mul	w9, w9, w7
Lloh2:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	udiv	w9, w9, w10
	add	w9, w7, w9
	madd	w8, w8, w9, w8
	lsl	w8, w8, #3
	add	w1, w8, #32
	str	w1, [x19]
	add	x2, x19, #24
	bl	_pci_alloc_consistent
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x26]
	cmp	w8, w25
	b.ne	LBB0_4
; %bb.2:
	mov	x8, x25
	cmp	w8, w23
	b.ne	LBB0_5
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	mov	x1, x24
	mov	x2, x25
	mov	w3, #1
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	w7, #1
	bl	_tw68_risc_field
	ldr	w8, [x26]
	cmp	w8, w23
	b.eq	LBB0_6
LBB0_5:
	cmp	w8, w25
	cset	w7, eq
	mov	x1, x24
	mov	x2, x23
	mov	w3, #2
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_tw68_risc_field
LBB0_6:
	str	x0, [x19, #16]
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	bl	_cpu_to_le32
	ldp	x8, x9, [x19, #8]
	str	w0, [x8, #4]
	sub	x8, x9, x8
	add	x8, x8, #8
	ldrsw	x9, [x19]
	cmp	x8, x9
	cset	w0, hi
	bl	_BUG_ON
	mov	w0, #0
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
