	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_config_from_hw
_update_config_from_hw:                 ## @update_config_from_hw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_XSDFEC_ORDER_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xsdfec_regread
	movl	%eax, 4(%rbx)
	movq	_XSDFEC_BYPASS_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%rbx), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_update_bool_config_from_reg
	movq	_XSDFEC_CODE_WR_PROTECT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_update_bool_config_from_reg
	movq	_XSDFEC_IMR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xsdfec_regread
	movq	_XSDFEC_ISR_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setg	%dl
	movl	%edx, 8(%rbx)
	movq	_XSDFEC_ECC_IMR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xsdfec_regread
	movq	_XSDFEC_ECC_ISR_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setg	%dl
	movl	%edx, 12(%rbx)
	movq	_XSDFEC_AXIS_ENABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xsdfec_regread
	movq	_XSDFEC_AXIS_IN_ENABLE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jle	LBB0_1
## %bb.2:
	movq	_XSDFEC_STARTED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_XSDFEC_STOPPED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XSDFEC_ORDER_ADDR,4,2          ## @XSDFEC_ORDER_ADDR
	.comm	_XSDFEC_BYPASS_ADDR,4,2         ## @XSDFEC_BYPASS_ADDR
	.comm	_XSDFEC_CODE_WR_PROTECT_ADDR,4,2 ## @XSDFEC_CODE_WR_PROTECT_ADDR
	.comm	_XSDFEC_IMR_ADDR,4,2            ## @XSDFEC_IMR_ADDR
	.comm	_XSDFEC_ISR_MASK,4,2            ## @XSDFEC_ISR_MASK
	.comm	_XSDFEC_ECC_IMR_ADDR,4,2        ## @XSDFEC_ECC_IMR_ADDR
	.comm	_XSDFEC_ECC_ISR_MASK,4,2        ## @XSDFEC_ECC_ISR_MASK
	.comm	_XSDFEC_AXIS_ENABLE_ADDR,4,2    ## @XSDFEC_AXIS_ENABLE_ADDR
	.comm	_XSDFEC_AXIS_IN_ENABLE_MASK,4,2 ## @XSDFEC_AXIS_IN_ENABLE_MASK
	.comm	_XSDFEC_STARTED,4,2             ## @XSDFEC_STARTED
	.comm	_XSDFEC_STOPPED,4,2             ## @XSDFEC_STOPPED
	.no_dead_strip	_update_config_from_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_config_from_hw
_update_config_from_hw:                 ; @update_config_from_hw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _XSDFEC_ORDER_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XSDFEC_ORDER_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xsdfec_regread
	str	w0, [x19, #4]
Lloh3:
	adrp	x8, _XSDFEC_BYPASS_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XSDFEC_BYPASS_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, x19, #20
	mov	x0, x19
	mov	w2, #0
	bl	_update_bool_config_from_reg
Lloh6:
	adrp	x8, _XSDFEC_CODE_WR_PROTECT_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSDFEC_CODE_WR_PROTECT_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, x19, #16
	mov	x0, x19
	mov	w2, #0
	bl	_update_bool_config_from_reg
Lloh9:
	adrp	x8, _XSDFEC_IMR_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XSDFEC_IMR_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xsdfec_regread
Lloh12:
	adrp	x8, _XSDFEC_ISR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XSDFEC_ISR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, gt
	str	w8, [x19, #8]
Lloh15:
	adrp	x8, _XSDFEC_ECC_IMR_ADDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XSDFEC_ECC_IMR_ADDR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xsdfec_regread
Lloh18:
	adrp	x8, _XSDFEC_ECC_ISR_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XSDFEC_ECC_ISR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, gt
	str	w8, [x19, #12]
Lloh21:
	adrp	x8, _XSDFEC_AXIS_ENABLE_ADDR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XSDFEC_AXIS_ENABLE_ADDR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xsdfec_regread
Lloh24:
	adrp	x8, _XSDFEC_AXIS_IN_ENABLE_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XSDFEC_AXIS_IN_ENABLE_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _XSDFEC_STARTED@GOTPAGE
Lloh28:
	ldr	x9, [x9, _XSDFEC_STARTED@GOTPAGEOFF]
Lloh29:
	adrp	x10, _XSDFEC_STOPPED@GOTPAGE
Lloh30:
	ldr	x10, [x10, _XSDFEC_STOPPED@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, gt
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XSDFEC_ORDER_ADDR,4,2          ; @XSDFEC_ORDER_ADDR
	.comm	_XSDFEC_BYPASS_ADDR,4,2         ; @XSDFEC_BYPASS_ADDR
	.comm	_XSDFEC_CODE_WR_PROTECT_ADDR,4,2 ; @XSDFEC_CODE_WR_PROTECT_ADDR
	.comm	_XSDFEC_IMR_ADDR,4,2            ; @XSDFEC_IMR_ADDR
	.comm	_XSDFEC_ISR_MASK,4,2            ; @XSDFEC_ISR_MASK
	.comm	_XSDFEC_ECC_IMR_ADDR,4,2        ; @XSDFEC_ECC_IMR_ADDR
	.comm	_XSDFEC_ECC_ISR_MASK,4,2        ; @XSDFEC_ECC_ISR_MASK
	.comm	_XSDFEC_AXIS_ENABLE_ADDR,4,2    ; @XSDFEC_AXIS_ENABLE_ADDR
	.comm	_XSDFEC_AXIS_IN_ENABLE_MASK,4,2 ; @XSDFEC_AXIS_IN_ENABLE_MASK
	.comm	_XSDFEC_STARTED,4,2             ; @XSDFEC_STARTED
	.comm	_XSDFEC_STOPPED,4,2             ; @XSDFEC_STOPPED
	.no_dead_strip	_update_config_from_hw
.subsections_via_symbols
