	.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, %rbx
	movq	_XCAN_SRR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XCAN_SRR_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_XCAN_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%r12), %r15
	movq	_XCAN_SR_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_XCAN_SR_CONFIG_MASK@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	testl	%eax, (%r14)
	je	LBB0_2
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_SRR_OFFSET,4,2            ## @XCAN_SRR_OFFSET
	.comm	_XCAN_SRR_RESET_MASK,4,2        ## @XCAN_SRR_RESET_MASK
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_XCAN_TIMEOUT,8,3               ## @XCAN_TIMEOUT
	.comm	_XCAN_SR_OFFSET,4,2             ## @XCAN_SR_OFFSET
	.comm	_XCAN_SR_CONFIG_MASK,4,2        ## @XCAN_SR_CONFIG_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out for config mode\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _XCAN_SRR_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCAN_SRR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _XCAN_SRR_RESET_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XCAN_SRR_RESET_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	blr	x8
Lloh6:
	adrp	x22, _jiffies@GOTPAGE
Lloh7:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
Lloh8:
	adrp	x8, _XCAN_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XCAN_TIMEOUT@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh10:
	ldr	x25, [x8]
	ldr	x8, [x20]
Lloh11:
	adrp	x23, _XCAN_SR_OFFSET@GOTPAGE
Lloh12:
	ldr	x23, [x23, _XCAN_SR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	blr	x8
Lloh13:
	adrp	x24, _XCAN_SR_CONFIG_MASK@GOTPAGE
Lloh14:
	ldr	x24, [x24, _XCAN_SR_CONFIG_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.1:
	add	x21, x25, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #500
	mov	w1, #10000
	bl	_usleep_range
	ldr	x8, [x20]
	ldr	w1, [x23]
	mov	x0, x20
	blr	x8
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_4:
	mov	w0, #0
	stp	xzr, xzr, [x20, #8]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_SRR_OFFSET,4,2            ; @XCAN_SRR_OFFSET
	.comm	_XCAN_SRR_RESET_MASK,4,2        ; @XCAN_SRR_RESET_MASK
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_XCAN_TIMEOUT,8,3               ; @XCAN_TIMEOUT
	.comm	_XCAN_SR_OFFSET,4,2             ; @XCAN_SR_OFFSET
	.comm	_XCAN_SR_CONFIG_MASK,4,2        ; @XCAN_SR_CONFIG_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out for config mode\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_set_reset_mode
.subsections_via_symbols
