	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_normal_mode
_set_normal_mode:                       ## @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, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_SJA1000_MOD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
	movl	$100, %r13d
	movq	_CAN_CTRLMODE_PRESUME_ACK@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	*8(%r15)
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	decl	%r13d
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MOD_RM@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %eax
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MOD_LOM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%ecx, %ebx
	andl	(%r14), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MOD_STM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_2:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%r15), %rax
	movq	_SJA1000_IER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_IRQ_ALL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, 16(%r15)
	jne	LBB0_4
## %bb.3:
	movq	_IRQ_BEI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %edx
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1000_MOD,4,2                ## @SJA1000_MOD
	.comm	_MOD_RM,1,0                     ## @MOD_RM
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_SJA1000_IER,4,2                ## @SJA1000_IER
	.comm	_IRQ_ALL,4,2                    ## @IRQ_ALL
	.comm	_IRQ_BEI,4,2                    ## @IRQ_BEI
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_MOD_LOM,4,2                    ## @MOD_LOM
	.comm	_CAN_CTRLMODE_PRESUME_ACK,4,2   ## @CAN_CTRLMODE_PRESUME_ACK
	.comm	_MOD_STM,4,2                    ## @MOD_STM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting SJA1000 into normal mode failed!\n"

	.no_dead_strip	_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 set_normal_mode
_set_normal_mode:                       ; @set_normal_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _SJA1000_MOD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SJA1000_MOD@GOTPAGEOFF]
	ldr	w1, [x22]
	blr	x8
	mov	w21, #0
	mov	w23, #100
Lloh2:
	adrp	x24, _MOD_RM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MOD_RM@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh6:
	adrp	x26, _MOD_LOM@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MOD_LOM@GOTPAGEOFF]
Lloh8:
	adrp	x27, _CAN_CTRLMODE_PRESUME_ACK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _CAN_CTRLMODE_PRESUME_ACK@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MOD_STM@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MOD_STM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #16]
	ldr	w9, [x25]
	ldr	w10, [x26]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w9, w9, w21
	ldr	w10, [x27]
	ldr	w11, [x28]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w21, w9, w8
	ldr	x8, [x19, #8]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	blr	x8
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	subs	w23, w23, #1
	b.ne	LBB0_1
; %bb.3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_4:
Lloh14:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w8, [x19, #16]
Lloh17:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _SJA1000_IER@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SJA1000_IER@GOTPAGEOFF]
	ldr	x3, [x19, #8]
Lloh22:
	ldr	w1, [x10]
Lloh23:
	adrp	x10, _IRQ_ALL@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IRQ_ALL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x10]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _IRQ_BEI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_BEI@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	bic	w2, w2, w8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1000_MOD,4,2                ; @SJA1000_MOD
	.comm	_MOD_RM,1,0                     ; @MOD_RM
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_SJA1000_IER,4,2                ; @SJA1000_IER
	.comm	_IRQ_ALL,4,2                    ; @IRQ_ALL
	.comm	_IRQ_BEI,4,2                    ; @IRQ_BEI
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_MOD_LOM,4,2                    ; @MOD_LOM
	.comm	_CAN_CTRLMODE_PRESUME_ACK,4,2   ; @CAN_CTRLMODE_PRESUME_ACK
	.comm	_MOD_STM,4,2                    ; @MOD_STM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting SJA1000 into normal mode failed!\n"

	.no_dead_strip	_set_normal_mode
.subsections_via_symbols
