	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_dmac_soft_reset
_smsc9420_dmac_soft_reset:              ## @smsc9420_dmac_soft_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_BUS_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_BUS_MODE_SWR_@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_smsc9420_reg_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_smsc9420_reg_read
	movl	$2, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_warn                     ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_MODE,4,2                   ## @BUS_MODE
	.comm	_BUS_MODE_SWR_,4,2              ## @BUS_MODE_SWR_
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Software reset not cleared\n"

	.no_dead_strip	_smsc9420_dmac_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_dmac_soft_reset
_smsc9420_dmac_soft_reset:              ; @smsc9420_dmac_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _BUS_MODE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BUS_MODE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _BUS_MODE_SWR_@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BUS_MODE_SWR_@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_smsc9420_reg_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
	mov	w0, #2
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _drv@GOTPAGE
Lloh5:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_warn
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_MODE,4,2                   ; @BUS_MODE
	.comm	_BUS_MODE_SWR_,4,2              ; @BUS_MODE_SWR_
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Software reset not cleared\n"

	.no_dead_strip	_smsc9420_dmac_soft_reset
.subsections_via_symbols
