	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_update_state
_gs_update_state:                       ## @gs_update_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movq	_CAN_ERR_RESTARTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	incl	20(%rdi)
	popq	%rbp
	retq
LBB0_2:
	movq	_CAN_ERR_BUSOFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	incl	16(%rdi)
	popq	%rbp
	retq
LBB0_4:
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.5:
	movq	8(%rsi), %rax
	movl	4(%rax), %eax
	movq	_CAN_ERR_CRTL_TX_WARNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_CAN_ERR_CRTL_RX_WARNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_7:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	incl	12(%rdi)
	popq	%rbp
	retq
LBB0_8:
	movq	_CAN_ERR_CRTL_TX_PASSIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	_CAN_ERR_CRTL_RX_PASSIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
LBB0_10:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	incl	8(%rdi)
	popq	%rbp
	retq
LBB0_11:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_ERR_RESTARTED,4,2          ## @CAN_ERR_RESTARTED
	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_ERR_BUSOFF,4,2             ## @CAN_ERR_BUSOFF
	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_CRTL,4,2               ## @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_TX_WARNING,4,2    ## @CAN_ERR_CRTL_TX_WARNING
	.comm	_CAN_ERR_CRTL_RX_WARNING,4,2    ## @CAN_ERR_CRTL_RX_WARNING
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ## @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,4,2    ## @CAN_ERR_CRTL_RX_PASSIVE
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ## @CAN_STATE_ERROR_PASSIVE
	.no_dead_strip	_gs_update_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gs_update_state
_gs_update_state:                       ; @gs_update_state
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _CAN_ERR_RESTARTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAN_ERR_RESTARTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w8, [x0, #20]
	add	w8, w8, #1
	str	w8, [x0, #20]
	ret
LBB0_2:
Lloh6:
	adrp	x9, _CAN_ERR_BUSOFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAN_ERR_BUSOFF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w8, [x0, #16]
	add	w8, w8, #1
	str	w8, [x0, #16]
	ret
LBB0_4:
Lloh12:
	adrp	x9, _CAN_ERR_CRTL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.5:
	ldr	x8, [x1, #8]
	ldr	w8, [x8, #4]
Lloh15:
	adrp	x9, _CAN_ERR_CRTL_TX_WARNING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAN_ERR_CRTL_TX_WARNING@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh18:
	adrp	x9, _CAN_ERR_CRTL_RX_WARNING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	ret
LBB0_8:
Lloh24:
	adrp	x9, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
Lloh27:
	adrp	x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_10:
Lloh30:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
	ret
LBB0_11:
Lloh33:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x0]
LBB0_12:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_ERR_RESTARTED,4,2          ; @CAN_ERR_RESTARTED
	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_ERR_BUSOFF,4,2             ; @CAN_ERR_BUSOFF
	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_CRTL,4,2               ; @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_TX_WARNING,4,2    ; @CAN_ERR_CRTL_TX_WARNING
	.comm	_CAN_ERR_CRTL_RX_WARNING,4,2    ; @CAN_ERR_CRTL_RX_WARNING
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ; @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,4,2    ; @CAN_ERR_CRTL_RX_PASSIVE
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ; @CAN_STATE_ERROR_PASSIVE
	.no_dead_strip	_gs_update_state
.subsections_via_symbols
