	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_fetch_syscall_args         ## -- Begin function cpu_fetch_syscall_args
	.p2align	4, 0x90
_cpu_fetch_syscall_args:                ## @cpu_fetch_syscall_args
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_NARGREG@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	8(%rdi), %rax
	movq	40(%rdi), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movq	(%rdx), %rax
	movq	%rax, 16(%rdi)
	movq	_SYS_syscall@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	movq	_SYS___syscall@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
LBB0_2:
	movslq	(%rsi), %rax
	addq	$4, %rsi
	movq	%rax, 16(%rbx)
	decl	%r15d
LBB0_3:
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	8(%rcx), %rcx
	cmovbq	%rax, %rdx
	leaq	(%rcx,%rdx,4), %rax
	movq	%rax, 32(%rbx)
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, 24(%rbx)
	movl	28(%rbx), %edi
	leal	(,%r15,4), %edx
	callq	_memcpy
	cmpl	%r15d, 24(%rbx)
	jle	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_5:
	movq	(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NARGREG,4,2                    ## @NARGREG
	.comm	_SYS_syscall,8,3                ## @SYS_syscall
	.comm	_SYS___syscall,8,3              ## @SYS___syscall
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TODO: Could we have more then %d args?"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_fetch_syscall_args         ; -- Begin function cpu_fetch_syscall_args
	.p2align	2
_cpu_fetch_syscall_args:                ; @cpu_fetch_syscall_args
	.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, x0
Lloh0:
	adrp	x20, _NARGREG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NARGREG@GOTPAGEOFF]
	ldr	w21, [x20]
	ldr	x8, [x0, #40]
	ldr	x9, [x0, #8]
	ldp	x9, x1, [x9]
	ldr	x9, [x9]
	str	x9, [x0, #16]
Lloh2:
	adrp	x10, _SYS_syscall@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SYS_syscall@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _SYS___syscall@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SYS___syscall@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldrsw	x9, [x1], #4
	str	x9, [x19, #16]
	sub	w21, w21, #1
LBB0_2:
	ldr	x8, [x8]
	ldp	x10, x8, [x8]
	cmp	x9, x10
	csel	x9, x9, xzr, lo
	lsl	x9, x9, #2
	add	x10, x8, x9
	str	x10, [x19, #32]
	ldr	w8, [x8, x9]
	str	w8, [x19, #24]
	ldr	w0, [x19, #28]
	lsl	w2, w21, #2
	bl	_memcpy
	ldr	w8, [x19, #24]
	cmp	w8, w21
	b.le	LBB0_4
; %bb.3:
	ldr	w1, [x20]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_4:
	ldr	x8, [x19]
	stp	xzr, xzr, [x8]
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NARGREG,4,2                    ; @NARGREG
	.comm	_SYS_syscall,8,3                ; @SYS_syscall
	.comm	_SYS___syscall,8,3              ; @SYS___syscall
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TODO: Could we have more then %d args?"

.subsections_via_symbols
