	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pd_buf_setup
_pd_buf_setup:                          ## @pd_buf_setup
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	8(%r12), %rbx
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.6:
	movl	(%rbx), %edi
	callq	_PAGE_ALIGN
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_log
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_8
## %bb.7:
	movl	$4, (%r14)
	jmp	LBB0_8
LBB0_3:
	leaq	16(%rbx), %r13
	movl	64(%rbx), %edi
	callq	_PAGE_ALIGN
	movl	%eax, (%r15)
	cmpl	$3, (%r14)
	ja	LBB0_5
## %bb.4:
	movl	$4, (%r14)
LBB0_5:
	movl	$130, 16(%rbx)
	movq	%rbx, 48(%rbx)
	movq	%r13, 8(%rbx)
	movq	%rbx, 40(%rbx)
	movl	56(%rbx), %eax
	movl	60(%rbx), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, 20(%rbx)
	addl	%ecx, %ecx
	movl	%ecx, 24(%rbx)
	movq	%r12, 32(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_start_video_stream             ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"size : %d"

	.no_dead_strip	_pd_buf_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pd_buf_setup
_pd_buf_setup:                          ; @pd_buf_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	ldr	x22, [x0]
	ldr	x20, [x22, #8]
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x20]
	bl	_PAGE_ALIGN
	mov	x1, x0
	str	w0, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	add	x23, x20, #16
	ldr	w0, [x20, #64]
	bl	_PAGE_ALIGN
	str	w0, [x21]
	ldr	w8, [x19]
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.5:
	mov	w8, #4
	str	w8, [x19]
LBB0_6:
	mov	w8, #130
	stp	x20, x20, [x20, #40]
	str	x23, [x20, #8]
	ldp	w9, w10, [x20, #56]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	stp	w8, w9, [x20, #16]
	lsl	w8, w10, #1
	str	w8, [x20, #24]
	str	x22, [x20, #32]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_start_video_stream
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	mov	w8, #4
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"size : %d"

	.no_dead_strip	_pd_buf_setup
.subsections_via_symbols
