	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flash_fault_show
_flash_fault_show:                      ## @flash_fault_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_lcdev_to_flcdev
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_led_get_flash_fault
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	$0, (%rbx)
	movq	_LED_NUM_FLASH_FAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	$1, %ebx
	xorl	%r14d, %r14d
	movq	_led_flash_fault_names@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%ebx, %ebx
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, -44(%rbp)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	cltq
	addq	%rax, %r13
	movq	_LED_NUM_FLASH_FAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rdx
	callq	_sprintf
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LED_NUM_FLASH_FAULTS,4,2       ## @LED_NUM_FLASH_FAULTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s "

	.comm	_led_flash_fault_names,8,3      ## @led_flash_fault_names
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_flash_fault_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flash_fault_show
_flash_fault_show:                      ; @flash_fault_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	bl	_dev_get_drvdata
	bl	_lcdev_to_flcdev
	add	x1, sp, #12
	bl	_led_get_flash_fault
	tbnz	w0, #31, LBB0_7
; %bb.1:
	strb	wzr, [x19]
Lloh0:
	adrp	x22, _LED_NUM_FLASH_FAULTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LED_NUM_FLASH_FAULTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x23, #0
	mov	w24, #1
Lloh2:
	adrp	x25, _led_flash_fault_names@GOTPAGE
Lloh3:
	ldr	x25, [x25, _led_flash_fault_names@GOTPAGEOFF]
	mov	x20, x19
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w24, w24, #1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #12]
	tst	w9, w24
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x2, [x8, x23, lsl #3]
	mov	x0, x20
	mov	x1, x21
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	w8, [x22]
	b	LBB0_3
LBB0_6:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x19
	bl	_sprintf
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LED_NUM_FLASH_FAULTS,4,2       ; @LED_NUM_FLASH_FAULTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s "

	.comm	_led_flash_fault_names,8,3      ; @led_flash_fault_names
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_flash_fault_show
.subsections_via_symbols
