	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xo_parse_args                  ## -- Begin function xo_parse_args
	.p2align	4, 0x90
_xo_parse_args:                         ## @xo_parse_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	(%rsi), %r12
	movq	_xo_program@GOTPCREL(%rip), %r13
	movq	%r12, (%r13)
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	incq	%rbx
	movq	%rbx, (%r13)
	movq	%rbx, %r12
	jmp	LBB0_3
LBB0_2:
	movq	(%r15), %rbx
LBB0_3:
	movq	%r12, %rdi
	callq	_strlen
	cmpq	$6, %rax
	jb	LBB0_6
## %bb.4:
	addq	%rax, %rbx
	addq	$-5, %rbx
	leaq	_xo_parse_args.gnu_ext(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xo_streq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movb	$0, (%rbx)
LBB0_6:
	xorl	%edi, %edi
	callq	_xo_default
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	cmpl	$2, %r14d
	jl	LBB0_14
## %bb.7:
	movl	$1, %ebx
	movl	$1, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r12d
	cmpl	%r14d, %r12d
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %r13
	movq	(%r15,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	_xo_parse_args.libxo_opt(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r12d, %ebx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15,%r13,8), %rax
	movslq	%ebx, %rcx
	movq	%rax, (%r15,%rcx,8)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15,%r13,8), %rsi
	movzbl	7(%rsi), %eax
	cmpb	$57, %al
	jle	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$58, %al
	je	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$61, %al
	jne	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$8, %rsi
	jmp	LBB0_26
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	testb	%al, %al
	jne	LBB0_20
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r15,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xo_set_options
	testq	%rax, %rax
	js	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%r12d
	jmp	LBB0_13
LBB0_31:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$7, %rsi
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xo_set_options
	testq	%rax, %rax
	jns	LBB0_13
	jmp	LBB0_34
LBB0_14:
	movq	_XOF_COLOR_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_XOF_ISSET
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	$1, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_XOF_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_XOF_SET
LBB0_17:
	movslq	%ebx, %rax
	movq	$0, (%r15,%rax,8)
LBB0_35:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	cmpb	$45, %al
	jne	LBB0_33
## %bb.21:
	addq	$8, %rsi
	leaq	L_.str.1(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_xo_streq
	testq	%rax, %rax
	jne	LBB0_22
## %bb.32:
	movq	(%r15,%r13,8), %rsi
LBB0_33:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_warnx
	jmp	LBB0_34
LBB0_28:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_warnx
LBB0_34:
	movl	$-1, %ebx
	jmp	LBB0_35
LBB0_22:
	movq	_XO_HAS_LIBXO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_xo_parse_args.libxo_opt:               ## @xo_parse_args.libxo_opt
	.asciz	"--libxo"

	.comm	_xo_program,8,3                 ## @xo_program
	.section	__TEXT,__const
_xo_parse_args.gnu_ext:                 ## @xo_parse_args.gnu_ext
	.asciz	".test"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing libxo option"

L_.str.1:                               ## @.str.1
	.asciz	"check"

	.comm	_XO_HAS_LIBXO,4,2               ## @XO_HAS_LIBXO
L_.str.2:                               ## @.str.2
	.asciz	"unknown libxo option: '%s'"

	.comm	_XOF_COLOR_ALLOWED,4,2          ## @XOF_COLOR_ALLOWED
	.comm	_XOF_COLOR,4,2                  ## @XOF_COLOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xo_parse_args                  ; -- Begin function xo_parse_args
	.p2align	2
_xo_parse_args:                         ; @xo_parse_args
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x22, _xo_program@GOTPAGE
Lloh1:
	ldr	x22, [x22, _xo_program@GOTPAGEOFF]
	str	x21, [x22]
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x21, x0, #1
	str	x21, [x22]
	mov	x22, x21
	b	LBB0_3
LBB0_2:
	ldr	x22, [x19]
LBB0_3:
	mov	x0, x21
	bl	_strlen
	cmp	x0, #6
	b.lo	LBB0_6
; %bb.4:
	add	x8, x0, x22
	sub	x21, x8, #5
Lloh2:
	adrp	x1, _xo_parse_args.gnu_ext@PAGE
Lloh3:
	add	x1, x1, _xo_parse_args.gnu_ext@PAGEOFF
	mov	x0, x21
	bl	_xo_streq
	cbz	x0, LBB0_6
; %bb.5:
	strb	wzr, [x21]
LBB0_6:
	mov	x0, #0
	bl	_xo_default
	mov	x22, x0
	mov	w21, #1
	cmp	w20, #2
	b.lt	LBB0_23
; %bb.7:
Lloh4:
	adrp	x23, _xo_parse_args.libxo_opt@PAGE
Lloh5:
	add	x23, x23, _xo_parse_args.libxo_opt@PAGEOFF
	mov	w24, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w21, w21, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w24, w24, #1
	cmp	w24, w20
	b.ge	LBB0_23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x25, w24
	ldr	x0, [x19, w24, sxtw #3]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x23
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w21, w24
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, x25, lsl #3]
	str	x8, [x19, w21, sxtw #3]
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, x25, lsl #3]
	mov	x1, x8
	ldrb	w9, [x1, #7]!
	cmp	w9, #57
	b.le	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #58
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #61
	b.ne	LBB0_31
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, x8, #8
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_xo_set_options
	tbz	x0, #63, LBB0_9
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w9, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x25, #1
	ldr	x1, [x19, x24, lsl #3]
	cbz	x1, LBB0_32
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_xo_set_options
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	tbz	x0, #63, LBB0_9
LBB0_22:
	mov	w21, #-1
	b	LBB0_27
LBB0_23:
Lloh6:
	adrp	x8, _XOF_COLOR_ALLOWED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XOF_COLOR_ALLOWED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_XOF_ISSET
	cbz	x0, LBB0_26
; %bb.24:
	mov	w0, #1
	bl	_isatty
	cbz	x0, LBB0_26
; %bb.25:
Lloh9:
	adrp	x8, _XOF_COLOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XOF_COLOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_XOF_SET
LBB0_26:
	str	xzr, [x19, w21, sxtw #3]
LBB0_27:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_28:
	cmp	w9, #45
	b.ne	LBB0_31
; %bb.29:
	add	x0, x8, #8
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_xo_streq
	cbnz	x0, LBB0_34
; %bb.30:
	ldr	x8, [x19, x25, lsl #3]
LBB0_31:
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
LBB0_33:
	bl	_xo_warnx
	mov	w21, #-1
	b	LBB0_27
LBB0_34:
Lloh18:
	adrp	x8, _XO_HAS_LIBXO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XO_HAS_LIBXO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_xo_parse_args.libxo_opt:               ; @xo_parse_args.libxo_opt
	.asciz	"--libxo"

	.comm	_xo_program,8,3                 ; @xo_program
	.section	__TEXT,__const
_xo_parse_args.gnu_ext:                 ; @xo_parse_args.gnu_ext
	.asciz	".test"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing libxo option"

l_.str.1:                               ; @.str.1
	.asciz	"check"

	.comm	_XO_HAS_LIBXO,4,2               ; @XO_HAS_LIBXO
l_.str.2:                               ; @.str.2
	.asciz	"unknown libxo option: '%s'"

	.comm	_XOF_COLOR_ALLOWED,4,2          ; @XOF_COLOR_ALLOWED
	.comm	_XOF_COLOR,4,2                  ; @XOF_COLOR
.subsections_via_symbols
