	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opt_ulong                      ## -- Begin function opt_ulong
	.p2align	4, 0x90
_opt_ulong:                             ## @opt_ulong
	.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
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movl	$0, (%r12)
	leaq	-48(%rbp), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_strtoul
	movq	-48(%rbp), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_6
## %bb.1:
	cmpb	$0, (%rcx)
	jne	LBB0_6
## %bb.2:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rdx
	movl	(%r12), %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_6
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	testl	%ecx, %ecx
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_opt_number_error
LBB0_8:
	movl	%r13d, (%r12)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rax, (%r15)
	movl	$1, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opt_ulong                      ; -- Begin function opt_ulong
	.p2align	2
_opt_ulong:                             ; @opt_ulong
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
	str	wzr, [x21]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	x8, x19
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldr	w8, [x21]
Lloh5:
	adrp	x10, _ERANGE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	x0, x9
	ccmp	w8, w10, #0, eq
	b.eq	LBB0_4
; %bb.2:
	cbnz	x0, LBB0_6
; %bb.3:
	cbz	w8, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_opt_number_error
	mov	w0, #0
LBB0_5:
	str	w22, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	str	x0, [x20]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
