	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3645a_get_fault
_as3645a_get_fault:                     ## @as3645a_get_fault
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_fled_to_as3645a
	movq	%rax, %r15
	movq	_AS_FAULT_INFO_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_as3645a_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	_AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_LED_FAULT_OVER_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_3:
	movq	_AS_FAULT_INFO_INDICATOR_LED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_LED_FAULT_INDICATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	movq	(%r15), %rdi
	movq	_AS_FAULT_INFO_LED_AMOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$1, %eax
	movl	$2, %edx
	sbbl	$0, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_AS_FAULT_INFO_TIMEOUT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_LED_FAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	movq	_AS_FAULT_INFO_OVER_TEMPERATURE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_LED_FAULT_OVER_TEMPERATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_9:
	movq	_AS_FAULT_INFO_SHORT_CIRCUIT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_LED_FAULT_OVER_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_11:
	movq	_AS_FAULT_INFO_OVER_VOLTAGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_LED_FAULT_INPUT_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AS_FAULT_INFO_REG,4,2          ## @AS_FAULT_INFO_REG
	.comm	_AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT,4,2 ## @AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT
	.comm	_LED_FAULT_OVER_CURRENT,4,2     ## @LED_FAULT_OVER_CURRENT
	.comm	_AS_FAULT_INFO_INDICATOR_LED,4,2 ## @AS_FAULT_INFO_INDICATOR_LED
	.comm	_LED_FAULT_INDICATOR,4,2        ## @LED_FAULT_INDICATOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u connected LEDs\n"

	.comm	_AS_FAULT_INFO_LED_AMOUNT,4,2   ## @AS_FAULT_INFO_LED_AMOUNT
	.comm	_AS_FAULT_INFO_TIMEOUT,4,2      ## @AS_FAULT_INFO_TIMEOUT
	.comm	_LED_FAULT_TIMEOUT,4,2          ## @LED_FAULT_TIMEOUT
	.comm	_AS_FAULT_INFO_OVER_TEMPERATURE,4,2 ## @AS_FAULT_INFO_OVER_TEMPERATURE
	.comm	_LED_FAULT_OVER_TEMPERATURE,4,2 ## @LED_FAULT_OVER_TEMPERATURE
	.comm	_AS_FAULT_INFO_SHORT_CIRCUIT,4,2 ## @AS_FAULT_INFO_SHORT_CIRCUIT
	.comm	_AS_FAULT_INFO_OVER_VOLTAGE,4,2 ## @AS_FAULT_INFO_OVER_VOLTAGE
	.comm	_LED_FAULT_INPUT_VOLTAGE,4,2    ## @LED_FAULT_INPUT_VOLTAGE
	.no_dead_strip	_as3645a_get_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3645a_get_fault
_as3645a_get_fault:                     ; @as3645a_get_fault
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	bl	_fled_to_as3645a
	mov	x21, x0
Lloh0:
	adrp	x8, _AS_FAULT_INFO_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AS_FAULT_INFO_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_as3645a_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x22, _LED_FAULT_OVER_CURRENT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LED_FAULT_OVER_CURRENT@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
Lloh8:
	adrp	x8, _AS_FAULT_INFO_INDICATOR_LED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AS_FAULT_INFO_INDICATOR_LED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _LED_FAULT_INDICATOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LED_FAULT_INDICATOR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	x0, [x21]
Lloh14:
	adrp	x8, _AS_FAULT_INFO_LED_AMOUNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AS_FAULT_INFO_LED_AMOUNT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	mov	w8, #1
	cinc	w2, w8, ne
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh19:
	adrp	x8, _AS_FAULT_INFO_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AS_FAULT_INFO_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh22:
	adrp	x8, _LED_FAULT_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LED_FAULT_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
Lloh25:
	adrp	x8, _AS_FAULT_INFO_OVER_TEMPERATURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AS_FAULT_INFO_OVER_TEMPERATURE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
Lloh28:
	adrp	x8, _LED_FAULT_OVER_TEMPERATURE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LED_FAULT_OVER_TEMPERATURE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
Lloh31:
	adrp	x8, _AS_FAULT_INFO_SHORT_CIRCUIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AS_FAULT_INFO_SHORT_CIRCUIT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
Lloh34:
	adrp	x8, _AS_FAULT_INFO_OVER_VOLTAGE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AS_FAULT_INFO_OVER_VOLTAGE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
Lloh37:
	adrp	x8, _LED_FAULT_INPUT_VOLTAGE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LED_FAULT_INPUT_VOLTAGE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_AS_FAULT_INFO_REG,4,2          ; @AS_FAULT_INFO_REG
	.comm	_AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT,4,2 ; @AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT
	.comm	_LED_FAULT_OVER_CURRENT,4,2     ; @LED_FAULT_OVER_CURRENT
	.comm	_AS_FAULT_INFO_INDICATOR_LED,4,2 ; @AS_FAULT_INFO_INDICATOR_LED
	.comm	_LED_FAULT_INDICATOR,4,2        ; @LED_FAULT_INDICATOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u connected LEDs\n"

	.comm	_AS_FAULT_INFO_LED_AMOUNT,4,2   ; @AS_FAULT_INFO_LED_AMOUNT
	.comm	_AS_FAULT_INFO_TIMEOUT,4,2      ; @AS_FAULT_INFO_TIMEOUT
	.comm	_LED_FAULT_TIMEOUT,4,2          ; @LED_FAULT_TIMEOUT
	.comm	_AS_FAULT_INFO_OVER_TEMPERATURE,4,2 ; @AS_FAULT_INFO_OVER_TEMPERATURE
	.comm	_LED_FAULT_OVER_TEMPERATURE,4,2 ; @LED_FAULT_OVER_TEMPERATURE
	.comm	_AS_FAULT_INFO_SHORT_CIRCUIT,4,2 ; @AS_FAULT_INFO_SHORT_CIRCUIT
	.comm	_AS_FAULT_INFO_OVER_VOLTAGE,4,2 ; @AS_FAULT_INFO_OVER_VOLTAGE
	.comm	_LED_FAULT_INPUT_VOLTAGE,4,2    ; @LED_FAULT_INPUT_VOLTAGE
	.no_dead_strip	_as3645a_get_fault
.subsections_via_symbols
