	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_next_arg
_validate_next_arg:                     ## @validate_next_arg
	.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
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_dm_shift_arg
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-41(%rbp), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.2:
	movl	(%rbx), %ecx
	cmpl	(%r13), %ecx
	jb	LBB0_6
## %bb.3:
	cmpl	4(%r13), %ecx
	ja	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.5:
	cmpl	%ecx, (%r15)
	jae	LBB0_7
LBB0_6:
	movq	8(%r13), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u%c"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_next_arg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_next_arg
_validate_next_arg:                     ; @validate_next_arg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_dm_shift_arg
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #15
	mov	x2, x23
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x23]
	ldr	w9, [x20]
	cmp	w8, w9
	b.lo	LBB0_6
; %bb.3:
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.hi	LBB0_6
; %bb.4:
	cbz	w21, LBB0_8
; %bb.5:
	ldr	w9, [x22]
	cmp	w9, w8
	b.hs	LBB0_8
LBB0_6:
	ldr	x8, [x20, #8]
	str	x8, [x19]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u%c"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_next_arg
.subsections_via_symbols
