	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str2shift
_str2shift:                             ## @str2shift
	.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
	cmpb	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15), %edi
	callq	_toupper
	cmpb	(%rbx,%r12), %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	je	LBB0_11
## %bb.6:
	movb	1(%r15), %al
	testb	%al, %al
	je	LBB0_10
## %bb.7:
	movsbl	%al, %edi
	callq	_toupper
	cmpb	$66, %al
	jne	LBB0_11
## %bb.8:
	cmpb	$0, 2(%r15)
	jne	LBB0_11
## %bb.9:
	movsbl	(%r15), %edi
	callq	_toupper
	cmpb	$66, %al
	jne	LBB0_10
LBB0_11:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dgettext
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_zfs_error_aux
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BKMGTPEZ"

	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
L_.str.1:                               ## @.str.1
	.asciz	"invalid numeric suffix '%s'"

	.no_dead_strip	_str2shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str2shift
_str2shift:                             ; @str2shift
	.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
	ldrb	w8, [x1]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19]
	bl	_toupper
	ldrb	w8, [x21, x22]
	cmp	w8, w0, uxtb
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	mov	x0, x21
	bl	_strlen
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_14
LBB0_6:
	mov	w22, #0
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	cmp	w22, w0
	b.eq	LBB0_12
; %bb.8:
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_13
; %bb.9:
	sxtb	w0, w8
	bl	_toupper
	cmp	w0, #66
	b.ne	LBB0_12
; %bb.10:
	ldrb	w8, [x19, #2]
	cbnz	w8, LBB0_12
; %bb.11:
	ldrsb	w0, [x19]
	bl	_toupper
	cmp	w0, #66
	b.ne	LBB0_13
LBB0_12:
Lloh4:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_zfs_error_aux
	mov	w0, #-1
	b	LBB0_14
LBB0_13:
	add	w8, w22, w22, lsl #2
	lsl	w0, w8, #1
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BKMGTPEZ"

	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
l_.str.1:                               ; @.str.1
	.asciz	"invalid numeric suffix '%s'"

	.no_dead_strip	_str2shift
.subsections_via_symbols
