	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_buffer_init
_pvr2_buffer_init:                      ## @pvr2_buffer_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_BUFFER_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%r14d, (%rbx)
	movq	_PVR2_TRACE_BUF_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_pvr2_trace
	movq	%r15, 16(%rbx)
	movq	_pvr2_buffer_state_none@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, 4(%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovnel	%r12d, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_SIG,4,2                 ## @BUFFER_SIG
	.comm	_PVR2_TRACE_BUF_POOL,4,2        ## @PVR2_TRACE_BUF_POOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/*---TRACE_FLOW---*/ bufferInit     %p stream=%p"

	.comm	_pvr2_buffer_state_none,4,2     ## @pvr2_buffer_state_none
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pvr2_buffer_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_buffer_init
_pvr2_buffer_init:                      ; @pvr2_buffer_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _BUFFER_SIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_SIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	str	w19, [x21]
Lloh3:
	adrp	x8, _PVR2_TRACE_BUF_POOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVR2_TRACE_BUF_POOL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_pvr2_trace
	str	x20, [x21, #16]
Lloh8:
	adrp	x8, _pvr2_buffer_state_none@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pvr2_buffer_state_none@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	add	x0, x21, #8
	bl	_INIT_LIST_HEAD
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	w0, [x21, #4]
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_SIG,4,2                 ; @BUFFER_SIG
	.comm	_PVR2_TRACE_BUF_POOL,4,2        ; @PVR2_TRACE_BUF_POOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/*---TRACE_FLOW---*/ bufferInit     %p stream=%p"

	.comm	_pvr2_buffer_state_none,4,2     ; @pvr2_buffer_state_none
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pvr2_buffer_init
.subsections_via_symbols
