	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bytes_str_to_int
_bytes_str_to_int:                      ## @bytes_str_to_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-24(%rbp), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_simple_strtoul
	movq	-24(%rbp), %rcx
	cmpq	%r14, %rcx
	je	LBB0_6
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jae	LBB0_6
## %bb.2:
	movsbl	(%rcx), %ecx
	cmpl	$74, %ecx
	jg	LBB0_7
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.4:
	cmpl	$71, %ecx
	jne	LBB0_12
## %bb.5:
	shlq	$10, %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	cmpl	$75, %ecx
	je	LBB0_10
## %bb.8:
	cmpl	$77, %ecx
	jne	LBB0_12
LBB0_9:
	shlq	$10, %rax
LBB0_10:
	shlq	$10, %rax
LBB0_11:
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UBI error: incorrect bytes count: \"%s\"\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bytes_str_to_int
_bytes_str_to_int:                      ; @bytes_str_to_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x1, sp, #8
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x19
	ccmp	x0, x9, #2, ne
	b.lo	LBB0_2
LBB0_1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldrsb	w8, [x8]
	cmp	w8, #74
	b.gt	LBB0_6
; %bb.3:
	cbz	w8, LBB0_10
; %bb.4:
	cmp	w8, #71
	b.ne	LBB0_1
; %bb.5:
	lsl	x0, x0, #10
	b	LBB0_8
LBB0_6:
	cmp	w8, #75
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #77
	b.ne	LBB0_1
LBB0_8:
	lsl	x0, x0, #10
LBB0_9:
	lsl	x0, x0, #10
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UBI error: incorrect bytes count: \"%s\"\n"

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