	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acc_get_sgl                    ## -- Begin function acc_get_sgl
	.p2align	4, 0x90
_acc_get_sgl:                           ## @acc_get_sgl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.2:
	cmpl	%esi, (%rdi)
	jle	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:
	movslq	4(%rdi), %rcx
	movslq	%esi, %rax
	imulq	%rcx, %rax
	movq	16(%rdi), %rcx
	addq	%rax, %rcx
	movq	%rcx, (%rdx)
	addq	8(%rdi), %rax
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acc_get_sgl                    ; -- Begin function acc_get_sgl
	.p2align	2
_acc_get_sgl:                           ; @acc_get_sgl
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x2, LBB0_5
; %bb.2:
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0, #4]
	sxtw	x10, w1
	mul	x9, x9, x10
	add	x8, x8, x9
	str	x8, [x2]
	ldr	x8, [x0, #8]
	add	x0, x8, x9
	ret
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
