	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_reset_mode
_set_reset_mode:                        ## @set_reset_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	_REG_MOD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	*(%rax)
	movl	%eax, %r13d
	movq	_REG_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_OFF@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%r15, %rdi
	callq	*8(%r15)
	movl	$100, %ebx
	movq	_MOD_RM@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	testb	%r13b, %al
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %esi
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	*8(%r15)
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r13d
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MOD,4,2                    ## @REG_MOD
	.comm	_REG_IER,4,2                    ## @REG_IER
	.comm	_IRQ_OFF,1,0                    ## @IRQ_OFF
	.comm	_MOD_RM,1,0                     ## @MOD_RM
	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting SJA1000 into reset mode failed!\n"

	.no_dead_strip	_set_reset_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_reset_mode
_set_reset_mode:                        ; @set_reset_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _REG_MOD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_MOD@GOTPAGEOFF]
	ldr	w1, [x22]
	blr	x8
	mov	x21, x0
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _REG_IER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_IER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	adrp	x9, _IRQ_OFF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQ_OFF@GOTPAGEOFF]
	ldrb	w2, [x9]
	mov	x0, x20
	blr	x8
	mov	w23, #100
Lloh7:
	adrp	x24, _MOD_RM@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MOD_RM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w2, [x24]
	tst	w2, w21
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x22]
	mov	x0, x20
	blr	x8
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x20]
	ldr	w1, [x22]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	subs	w23, w23, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_4:
Lloh11:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MOD,4,2                    ; @REG_MOD
	.comm	_REG_IER,4,2                    ; @REG_IER
	.comm	_IRQ_OFF,1,0                    ; @IRQ_OFF
	.comm	_MOD_RM,1,0                     ; @MOD_RM
	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting SJA1000 into reset mode failed!\n"

	.no_dead_strip	_set_reset_mode
.subsections_via_symbols
