	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sequence_store
_sequence_store:                        ## @sequence_store
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	callq	_to_cros_ec_dev
	movq	%rax, %r14
	xorl	%r13d, %r13d
	movl	$0, %ebx
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_isalnum
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
## %bb.4:
	movq	%r15, %rbx
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	_seqname@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movl	%r13d, -44(%rbp)
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jb	LBB0_7
LBB0_9:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jb	LBB0_11
## %bb.10:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kstrtouint
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_alloc_lightbar_cmd_msg
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	_LIGHTBAR_CMD_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	-44(%rbp), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_lb_throttle
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_19:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_20
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_cros_ec_cmd_xfer
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	(%r12), %rax
	movq	_EC_RES_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.18:
	movl	%r15d, %ebx
	jmp	LBB0_19
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_seqname,8,3                    ## @seqname
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LIGHTBAR_CMD_SEQ,4,2           ## @LIGHTBAR_CMD_SEQ
	.comm	_EC_RES_SUCCESS,8,3             ## @EC_RES_SUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sequence_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sequence_store
_sequence_store:                        ; @sequence_store
	.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	x19, x3
	mov	x21, x2
	bl	_to_cros_ec_dev
	mov	x20, x0
	cbz	x19, LBB0_5
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x21, x22]
	bl	_isalnum
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x19, x22
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x19
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	str	wzr, [sp, #12]
Lloh0:
	adrp	x23, _seqname@GOTPAGE
Lloh1:
	ldr	x23, [x23, _seqname@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_10
; %bb.7:
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x21
	mov	x2, x22
	bl	_strncasecmp
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	str	w24, [sp, #12]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.lo	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.lo	LBB0_13
; %bb.12:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtouint
	mov	x22, x0
	cbnz	w0, LBB0_17
LBB0_13:
	mov	x0, x20
	bl	_alloc_lightbar_cmd_msg
	cbz	x0, LBB0_16
; %bb.14:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh2:
	adrp	x9, _LIGHTBAR_CMD_SEQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LIGHTBAR_CMD_SEQ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	stp	w10, w9, [x8]
	bl	_lb_throttle
	mov	x22, x0
	cbz	w0, LBB0_18
LBB0_15:
	mov	x0, x21
	bl	_kfree
	b	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	mov	x0, x22
	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_18:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_cros_ec_cmd_xfer
	tbnz	w0, #31, LBB0_21
; %bb.19:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _EC_RES_SUCCESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EC_RES_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	mov	x22, x19
	b	LBB0_15
LBB0_21:
	mov	x22, x0
	b	LBB0_15
LBB0_22:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_seqname,8,3                    ; @seqname
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LIGHTBAR_CMD_SEQ,4,2           ; @LIGHTBAR_CMD_SEQ
	.comm	_EC_RES_SUCCESS,8,3             ; @EC_RES_SUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sequence_store
.subsections_via_symbols
