	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	callq	_strlen
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r14), %edi
	callq	_toupper
	cmpb	(%rbx,%r15), %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_7:
	movb	1(%r14), %al
	testb	%al, %al
	je	LBB0_10
## %bb.8:
	movsbl	%al, %edi
	callq	_toupper
	cmpb	$66, %al
	jne	LBB0_11
## %bb.9:
	cmpb	$0, 2(%r14)
	je	LBB0_10
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
                                        ## implicit-def: $eax
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BKMGTPEZ"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"ztest: invalid bytes suffix: %s\n"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.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, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19]
	bl	_toupper
	ldrb	w8, [x20, x21]
	cmp	w8, w0, uxtb
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_strlen
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_14
LBB0_6:
	mov	w21, #0
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
Lloh4:
	adrp	x22, _stderr@GOTPAGE
Lloh5:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
Lloh6:
	adrp	x20, _B_FALSE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _B_FALSE@GOTPAGEOFF]
	cmp	w21, w0
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	w0, [x20]
	bl	_usage
LBB0_9:
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_13
; %bb.10:
	sxtb	w0, w8
	bl	_toupper
	cmp	w0, #66
	b.ne	LBB0_12
; %bb.11:
	ldrb	w8, [x19, #2]
	cbz	w8, LBB0_13
LBB0_12:
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	w0, [x20]
	bl	_usage
                                        ; implicit-def: $w0
	b	LBB0_14
LBB0_13:
	add	w8, w21, w21, 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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BKMGTPEZ"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"ztest: invalid bytes suffix: %s\n"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.no_dead_strip	_str2shift
.subsections_via_symbols
