	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_fault_to_battery_status
_set_fault_to_battery_status:           ## @set_fault_to_battery_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rcx)
	je	LBB0_3
## %bb.2:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_LED_ON@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rcx)
	jne	LBB0_9
## %bb.4:
	cmpq	$0, 24(%rcx)
	jne	LBB0_9
## %bb.5:
	testq	%rdx, %rdx
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 16(%rcx)
	je	LBB0_7
LBB0_8:
	movq	_LED_FLASH_3_5@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_LED_FAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	popq	%rbp
	jmp	_set_led                        ## TAILCALL
LBB0_7:
	movq	_LED_FLASH_7_0@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_FAULT,4,2                  ## @LED_FAULT
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_LED_ON,4,2                     ## @LED_ON
	.comm	_LED_FLASH_7_0,4,2              ## @LED_FLASH_7_0
	.comm	_LED_FLASH_3_5,4,2              ## @LED_FLASH_3_5
	.no_dead_strip	_set_fault_to_battery_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_fault_to_battery_status
_set_fault_to_battery_status:           ; @set_fault_to_battery_status
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x10, [x8, #16]
	cbz	x10, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x10, [x8, #8]
	cbnz	x10, LBB0_5
; %bb.4:
	ldr	x10, [x8, #24]
	cbz	x10, LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _LED_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_ON@GOTPAGEOFF]
LBB0_6:
Lloh4:
	adrp	x9, _LED_FAULT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LED_FAULT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	ldr	w2, [x8]
	b	_set_led
LBB0_7:
	cbnz	x9, LBB0_9
; %bb.8:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _LED_FLASH_3_5@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LED_FLASH_3_5@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
Lloh9:
	adrp	x8, _LED_FLASH_7_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_FLASH_7_0@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_FAULT,4,2                  ; @LED_FAULT
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_LED_ON,4,2                     ; @LED_ON
	.comm	_LED_FLASH_7_0,4,2              ; @LED_FLASH_7_0
	.comm	_LED_FLASH_3_5,4,2              ; @LED_FLASH_3_5
	.no_dead_strip	_set_fault_to_battery_status
.subsections_via_symbols
