	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sequence_show
_sequence_show:                         ## @sequence_show
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_to_cros_ec_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_alloc_lightbar_cmd_msg
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	_LIGHTBAR_CMD_GET_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_lb_throttle
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_cros_ec_cmd_xfer
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	(%r15), %rcx
	movq	_EC_RES_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.6:
	movq	8(%r15), %rbx
	movq	(%rbx), %r13
	movq	_seqname@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	%rax, %r13
	jge	LBB0_7
## %bb.8:
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_9
LBB0_7:
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdx
LBB0_9:
	movq	%r14, %rdi
	callq	_scnprintf
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LIGHTBAR_CMD_GET_SEQ,4,2       ## @LIGHTBAR_CMD_GET_SEQ
	.comm	_EC_RES_SUCCESS,8,3             ## @EC_RES_SUCCESS
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: EC returned %d\n"

	.comm	_seqname,8,3                    ## @seqname
L_.str.1:                               ## @.str.1
	.asciz	"%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.no_dead_strip	_sequence_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sequence_show
_sequence_show:                         ; @sequence_show
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	bl	_to_cros_ec_dev
	mov	x22, x0
	bl	_alloc_lightbar_cmd_msg
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _LIGHTBAR_CMD_GET_SEQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIGHTBAR_CMD_GET_SEQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8]
	bl	_lb_throttle
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_cros_ec_cmd_xfer
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x3, [x19]
Lloh3:
	adrp	x8, _EC_RES_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_RES_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x21, [x19, #8]
	ldr	x23, [x21]
Lloh6:
	adrp	x22, _seqname@GOTPAGE
Lloh7:
	ldr	x22, [x22, _seqname@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cmp	x23, x0
	b.ge	LBB0_8
; %bb.5:
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	x3, [x8, x9, lsl #3]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	x3, [x21]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_scnprintf
LBB0_10:
	mov	x21, x0
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LIGHTBAR_CMD_GET_SEQ,4,2       ; @LIGHTBAR_CMD_GET_SEQ
	.comm	_EC_RES_SUCCESS,8,3             ; @EC_RES_SUCCESS
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: EC returned %d\n"

	.comm	_seqname,8,3                    ; @seqname
l_.str.1:                               ; @.str.1
	.asciz	"%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.no_dead_strip	_sequence_show
.subsections_via_symbols
