	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_nicestrtonum               ## -- Begin function zfs_nicestrtonum
	.p2align	4, 0x90
_zfs_nicestrtonum:                      ## @zfs_nicestrtonum
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, (%rdx)
	movb	(%rsi), %al
	cmpb	$46, %al
	je	LBB0_4
## %bb.1:
	addb	$-48, %al
	cmpb	$10, %al
	jb	LBB0_4
## %bb.2:
	movl	$-1, %r14d
	testq	%r15, %r15
	je	LBB0_17
## %bb.3:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_zfs_error_aux
	jmp	LBB0_17
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoull
	movl	%eax, (%r12)
	movq	(%r14), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movl	$-1, %r14d
LBB0_6:
	testq	%r15, %r15
	je	LBB0_17
## %bb.7:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dgettext
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	jmp	LBB0_17
LBB0_8:
	movq	-40(%rbp), %rsi
	cmpb	$46, (%rsi)
	jne	LBB0_12
## %bb.9:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtod
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_str2shift
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.10:
	movl	$2, %edi
	movl	%eax, %esi
	callq	_pow
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movq	_UINT64_MAX@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm1
	ja	LBB0_6
## %bb.11:
	movapd	%xmm1, %xmm0
	cvttsd2si	%xmm1, %eax
	movl	%eax, (%r12)
	jmp	LBB0_16
LBB0_12:
	movq	%r15, %rdi
	callq	_str2shift
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.13:
	cmpl	$63, %eax
	jg	LBB0_6
## %bb.14:
	movl	(%r12), %esi
	movl	%esi, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, %edi
	sarl	%cl, %edi
	cmpl	%esi, %edi
	jne	LBB0_6
## %bb.15:
	movl	%edx, (%r12)
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad numeric value '%s'"

	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
L_.str.1:                               ## @.str.1
	.asciz	"numeric value is too large"

	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_nicestrtonum               ; -- Begin function zfs_nicestrtonum
	.p2align	2
_zfs_nicestrtonum:                      ; @zfs_nicestrtonum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x1
	mov	x19, x0
	str	wzr, [x2]
	ldrb	w8, [x1]
	sub	w9, w8, #48
	cmp	w8, #46
	ccmp	w9, #10, #0, ne
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x2
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtoull
	str	w0, [x20]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _ERANGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_2:
	cbz	x19, LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	b	LBB0_6
LBB0_4:
	cbz	x19, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	str	x21, [sp]
LBB0_6:
	mov	x0, x19
	bl	_zfs_error_aux
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	x1, [sp, #8]
	ldrb	w8, [x1]
	cmp	w8, #46
	b.ne	LBB0_13
; %bb.10:
	add	x1, sp, #8
	mov	x0, x21
	bl	_strtod
	fmov	d8, d0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_str2shift
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.11:
	mov	x1, x0
	mov	w0, #2
	bl	_pow
	fmul	d0, d8, d0
Lloh15:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh17:
	ldr	d1, [x8]
	fcmp	d0, d1
	b.gt	LBB0_2
; %bb.12:
	mov	w0, #0
	fcvtzs	w8, d0
	b	LBB0_17
LBB0_13:
	mov	x0, x19
	bl	_str2shift
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.14:
	cmp	w0, #63
	b.gt	LBB0_2
; %bb.15:
	ldr	w9, [x20]
	lsl	w8, w9, w0
	asr	w10, w8, w0
	cmp	w10, w9
	b.ne	LBB0_2
; %bb.16:
	mov	w0, #0
LBB0_17:
	str	w8, [x20]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad numeric value '%s'"

	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
l_.str.1:                               ; @.str.1
	.asciz	"numeric value is too large"

	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
.subsections_via_symbols
