	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_setup
_buffer_setup:                          ## @buffer_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %ecx
	imull	(%rdi), %ecx
	imull	4(%rax), %ecx
	sarl	$3, %ecx
	movl	%ecx, (%rdx)
	movl	(%rsi), %edi
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	movq	_gbuffers@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%rsi)
	movl	(%rdx), %ecx
LBB0_2:
	imull	%ecx, %edi
	movq	_gbuffers@GOTPCREL(%rip), %rdx
	movq	_gbufsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rdx), %eax
	cmpl	%eax, %edi
	jbe	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, (%rsi)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gbuffers,4,2                   ## @gbuffers
	.comm	_gbufsize,4,2                   ## @gbufsize
	.no_dead_strip	_buffer_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_setup
_buffer_setup:                          ; @buffer_setup
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	ldp	w10, w8, [x8]
	mul	w9, w10, w9
	mul	w8, w9, w8
	asr	w8, w8, #3
	str	w8, [x2]
	ldr	w10, [x1]
Lloh0:
	adrp	x9, _gbuffers@GOTPAGE
Lloh1:
	ldr	x9, [x9, _gbuffers@GOTPAGEOFF]
	cbnz	w10, LBB0_2
; %bb.1:
	ldr	w10, [x9]
	str	w10, [x1]
	ldr	w8, [x2]
LBB0_2:
	mul	w10, w10, w8
	ldr	w9, [x9]
Lloh2:
	adrp	x11, _gbufsize@GOTPAGE
Lloh3:
	ldr	x11, [x11, _gbufsize@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	mul	w9, w11, w9
	cmp	w10, w9
	b.ls	LBB0_4
; %bb.3:
	udiv	w8, w9, w8
	str	w8, [x1]
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_gbuffers,4,2                   ; @gbuffers
	.comm	_gbufsize,4,2                   ; @gbufsize
	.no_dead_strip	_buffer_setup
.subsections_via_symbols
