	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp251x_set_normal_mode
_mcp251x_set_normal_mode:               ## @mcp251x_set_normal_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spi_get_drvdata
	movq	_CANINTE_ERRIE@GOTPCREL(%rip), %rcx
	movq	_CANINTE_TX2IE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CANINTE_TX1IE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%rax, %r14
	movq	_CANINTE_TX0IE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_CANINTE@GOTPCREL(%rip), %rax
	movq	_CANINTE_RX1IE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_CANINTE_RX0IE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mcp251x_write_reg
	movl	(%r14), %eax
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_CANCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CANCTRL_REQOP_LOOPBACK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rcx
	movq	_CANCTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_CANCTRL_REQOP_LISTEN_ONLY@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mcp251x_write_reg
LBB0_3:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_CANCTRL_REQOP_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mcp251x_write_reg
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%rcx), %r15
	movq	_CANSTAT@GOTPCREL(%rip), %r13
	movq	_CANCTRL_REQOP_MASK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mcp251x_read_reg
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CANINTE,4,2                    ## @CANINTE
	.comm	_CANINTE_ERRIE,4,2              ## @CANINTE_ERRIE
	.comm	_CANINTE_TX2IE,4,2              ## @CANINTE_TX2IE
	.comm	_CANINTE_TX1IE,4,2              ## @CANINTE_TX1IE
	.comm	_CANINTE_TX0IE,4,2              ## @CANINTE_TX0IE
	.comm	_CANINTE_RX1IE,4,2              ## @CANINTE_RX1IE
	.comm	_CANINTE_RX0IE,4,2              ## @CANINTE_RX0IE
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_CANCTRL,4,2                    ## @CANCTRL
	.comm	_CANCTRL_REQOP_LOOPBACK,4,2     ## @CANCTRL_REQOP_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_CANCTRL_REQOP_LISTEN_ONLY,4,2  ## @CANCTRL_REQOP_LISTEN_ONLY
	.comm	_CANCTRL_REQOP_NORMAL,4,2       ## @CANCTRL_REQOP_NORMAL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_CANSTAT,4,2                    ## @CANSTAT
	.comm	_CANCTRL_REQOP_MASK,4,2         ## @CANCTRL_REQOP_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCP251x didn't enter in normal mode\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_mcp251x_set_normal_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp251x_set_normal_mode
_mcp251x_set_normal_mode:               ; @mcp251x_set_normal_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_spi_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _CANINTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CANINTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CANINTE_ERRIE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CANINTE_ERRIE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CANINTE_TX2IE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CANINTE_TX2IE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _CANINTE_TX1IE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CANINTE_TX1IE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _CANINTE_TX0IE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CANINTE_TX0IE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _CANINTE_RX1IE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CANINTE_RX1IE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _CANINTE_RX0IE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CANINTE_RX0IE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_mcp251x_write_reg
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh24:
	adrp	x8, _CANCTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CANCTRL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _CANCTRL_REQOP_LOOPBACK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CANCTRL_REQOP_LOOPBACK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh29:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _CANCTRL@GOTPAGE
Lloh33:
	ldr	x10, [x10, _CANCTRL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x10]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh35:
	adrp	x8, _CANCTRL_REQOP_LISTEN_ONLY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CANCTRL_REQOP_LISTEN_ONLY@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mcp251x_write_reg
LBB0_5:
	mov	w0, #0
Lloh37:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh40:
	adrp	x8, _CANCTRL_REQOP_NORMAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CANCTRL_REQOP_NORMAL@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mcp251x_write_reg
Lloh43:
	adrp	x22, _jiffies@GOTPAGE
Lloh44:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh45:
	adrp	x9, _HZ@GOTPAGE
Lloh46:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x21, x9, x8
Lloh48:
	adrp	x23, _CANSTAT@GOTPAGE
Lloh49:
	ldr	x23, [x23, _CANSTAT@GOTPAGEOFF]
Lloh50:
	adrp	x24, _CANCTRL_REQOP_MASK@GOTPAGE
Lloh51:
	ldr	x24, [x24, _CANCTRL_REQOP_MASK@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_mcp251x_read_reg
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_schedule
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	cbz	x0, LBB0_8
; %bb.10:
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh54:
	adrp	x8, _EBUSY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.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
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_CANINTE,4,2                    ; @CANINTE
	.comm	_CANINTE_ERRIE,4,2              ; @CANINTE_ERRIE
	.comm	_CANINTE_TX2IE,4,2              ; @CANINTE_TX2IE
	.comm	_CANINTE_TX1IE,4,2              ; @CANINTE_TX1IE
	.comm	_CANINTE_TX0IE,4,2              ; @CANINTE_TX0IE
	.comm	_CANINTE_RX1IE,4,2              ; @CANINTE_RX1IE
	.comm	_CANINTE_RX0IE,4,2              ; @CANINTE_RX0IE
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_CANCTRL,4,2                    ; @CANCTRL
	.comm	_CANCTRL_REQOP_LOOPBACK,4,2     ; @CANCTRL_REQOP_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_CANCTRL_REQOP_LISTEN_ONLY,4,2  ; @CANCTRL_REQOP_LISTEN_ONLY
	.comm	_CANCTRL_REQOP_NORMAL,4,2       ; @CANCTRL_REQOP_NORMAL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_CANSTAT,4,2                    ; @CANSTAT
	.comm	_CANCTRL_REQOP_MASK,4,2         ; @CANCTRL_REQOP_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCP251x didn't enter in normal mode\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.no_dead_strip	_mcp251x_set_normal_mode
.subsections_via_symbols
