	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt3_init_dmabuf                ## -- Begin function pt3_init_dmabuf
	.p2align	4, 0x90
_pt3_init_dmabuf:                       ## @pt3_init_dmabuf
	.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
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	jle	LBB0_6
## %bb.1:
	movq	24(%rdi), %r9
	movq	(%r9), %rsi
	movq	_PT3_ACCESS_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	xorl	%edx, %edx
	movq	_PT3_BUF_CANARY@GOTPCREL(%rip), %r8
	movq	_DATA_BUF_SZ@GOTPCREL(%rip), %r10
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	incl	%eax
	movq	8(%r9,%rcx,8), %rsi
	cmpl	(%rdi), %eax
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8), %ebx
	movslq	%edx, %rcx
	movl	%ebx, (%rsi,%rcx,4)
	addl	%r11d, %ecx
	movl	%ecx, %edx
	subl	(%r10), %edx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %edx
	cmpl	(%rdi), %eax
	jl	LBB0_2
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT3_BUF_CANARY,4,2             ## @PT3_BUF_CANARY
	.comm	_PT3_ACCESS_UNIT,8,3            ## @PT3_ACCESS_UNIT
	.comm	_DATA_BUF_SZ,4,2                ## @DATA_BUF_SZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt3_init_dmabuf                ; -- Begin function pt3_init_dmabuf
	.p2align	2
_pt3_init_dmabuf:                       ; @pt3_init_dmabuf
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w12, #0
	mov	w9, #0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x10, _PT3_ACCESS_UNIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PT3_ACCESS_UNIT@GOTPAGEOFF]
	ldr	x14, [x8]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _PT3_BUF_CANARY@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PT3_BUF_CANARY@GOTPAGEOFF]
Lloh5:
	adrp	x13, _DATA_BUF_SZ@GOTPAGE
Lloh6:
	ldr	x13, [x13, _DATA_BUF_SZ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w15, [x0]
	cmp	w9, w15
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x11]
	str	w15, [x14, w12, sxtw #2]
	ldr	w15, [x13]
	add	w12, w12, w10
	subs	w15, w12, w15
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x9, w9
	add	x9, x9, #1
	ldr	x14, [x8, x9, lsl #3]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	mov	x12, x15
	b	LBB0_2
LBB0_5:
	stp	xzr, xzr, [x0, #8]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PT3_BUF_CANARY,4,2             ; @PT3_BUF_CANARY
	.comm	_PT3_ACCESS_UNIT,8,3            ; @PT3_ACCESS_UNIT
	.comm	_DATA_BUF_SZ,4,2                ; @DATA_BUF_SZ
.subsections_via_symbols
