	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmdline_getarg                 ## -- Begin function cmdline_getarg
	.p2align	4, 0x90
_cmdline_getarg:                        ## @cmdline_getarg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movl	(%rdi), %edx
	xorl	%edi, %edi
	testl	%edx, %edx
	cmovlel	%edi, %edx
	incl	%esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, %edx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%edi
	cmpl	%edi, %esi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_6:
	popq	%rbp
	retq
LBB0_4:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmdline_getarg                 ; -- Begin function cmdline_getarg
	.p2align	2
_cmdline_getarg:                        ; @cmdline_getarg
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x0]
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	add	w10, w1, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w10, w10, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w9, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_5:
	mov	w0, #-1
	ret
LBB0_6:
	ldr	w0, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
