	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getsubopt                      ## -- Begin function getsubopt
	.p2align	4, 0x90
_getsubopt:                             ## @getsubopt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rdx)
	movq	_suboptarg@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.1:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_36
## %bb.2:
	movq	%rsi, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$9, %bl
	jne	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %ebx
	cmpb	$31, %bl
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$44, %bl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$32, %bl
	je	LBB0_9
	jmp	LBB0_10
LBB0_5:
	testb	%bl, %bl
	jne	LBB0_10
## %bb.6:
	movq	%rcx, (%rdi)
	jmp	LBB0_36
LBB0_10:
	movq	%rcx, (%rax)
	incq	%rcx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %ebx
	incq	%rcx
	cmpb	$31, %bl
	jle	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$32, %bl
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$44, %bl
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$61, %bl
	jne	LBB0_11
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	testb	%bl, %bl
	je	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$9, %bl
	jne	LBB0_11
LBB0_14:
	leaq	-1(%rcx), %rdx
	movb	$0, (%rdx)
	jmp	LBB0_23
LBB0_18:
	movb	$0, -1(%rcx)
	movq	%rcx, (%rdx)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rcx
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %edx
	cmpb	$31, %dl
	jg	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	testb	%dl, %dl
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$9, %dl
	jne	LBB0_29
	jmp	LBB0_22
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$32, %dl
	je	LBB0_22
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$44, %dl
	jne	LBB0_29
LBB0_22:
	movb	$0, (%rcx)
	incq	%rcx
LBB0_23:
	movabsq	$17596481012224, %rdx           ## imm = 0x100100000200
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %esi
	cmpq	$44, %rsi
	ja	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	btq	%rsi, %rdx
	jae	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	incq	%rcx
	jmp	LBB0_24
LBB0_30:
	decq	%rcx
LBB0_31:
	movq	%rcx, (%rdi)
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.32:
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	8(%r15,%rbx,8), %rsi
	incq	%rbx
	testq	%rsi, %rsi
	jne	LBB0_33
	jmp	LBB0_36
LBB0_35:
	movl	%ebx, %r14d
LBB0_36:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_suboptarg,8,3                  ## @suboptarg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getsubopt                      ; -- Begin function getsubopt
	.p2align	2
_getsubopt:                             ; @getsubopt
	.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
	str	xzr, [x2]
Lloh0:
	adrp	x9, _suboptarg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _suboptarg@GOTPAGEOFF]
	str	xzr, [x9]
	cbz	x0, LBB0_34
; %bb.1:
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
	b	LBB0_34
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #9
	b.ne	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #31
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #44
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #32
	b.eq	LBB0_3
	b	LBB0_9
LBB0_7:
	cbnz	w10, LBB0_9
; %bb.8:
	str	x8, [x0]
	b	LBB0_34
LBB0_9:
	str	x8, [x9]
	add	x10, x8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x10], #1
	cmp	w8, #31
	b.le	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, #32
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, #44
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, #61
	b.ne	LBB0_10
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	w8, LBB0_29
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, #9
	b.ne	LBB0_10
LBB0_16:
	sub	x8, x10, #1
	b	LBB0_25
LBB0_17:
	sturb	wzr, [x10, #-1]
	str	x10, [x2]
	mov	x8, x10
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #31
	b.gt	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	w10, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w10, #9
	b.ne	LBB0_18
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	w10, #32
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w10, #44
	b.ne	LBB0_18
LBB0_24:
	add	x10, x8, #1
LBB0_25:
	strb	wzr, [x8]
	mov	x8, x10
LBB0_26:
	mov	w10, #1
	mov	x11, #512
	movk	x11, #4097, lsl #32
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8]
	cmp	w12, #44
	lsl	x12, x10, x12
	and	x12, x12, x11
	ccmp	x12, #0, #4, ls
	b.eq	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x8, x8, #1
	b	LBB0_27
LBB0_29:
	sub	x8, x10, #1
LBB0_30:
	str	x8, [x0]
	ldr	x8, [x1]
	cbz	x8, LBB0_34
; %bb.31:
	mov	x19, #0
	ldr	x20, [x9]
	add	x21, x1, #8
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x8
	bl	_strcmp
	cbz	w0, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [x21, x19, lsl #3]
	add	x19, x19, #1
	cbnz	x8, LBB0_32
LBB0_34:
	mov	w19, #-1
LBB0_35:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_suboptarg,8,3                  ; @suboptarg
.subsections_via_symbols
