	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_reset
_dm9000_reset:                          ## @dm9000_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_DM9000_NCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_NCR_RST@GOTPCREL(%rip), %r15
	movq	_NCR_MAC_LBK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_iow
	movl	$100, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ior
	testb	$1, %al
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iow
	movl	(%r14), %esi
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_iow
	movl	$100, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ior
	testb	$1, %al
	jne	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resetting device\n"

	.comm	_DM9000_NCR,4,2                 ## @DM9000_NCR
	.comm	_NCR_RST,4,2                    ## @NCR_RST
	.comm	_NCR_MAC_LBK,4,2                ## @NCR_MAC_LBK
L_.str.1:                               ## @.str.1
	.asciz	"dm9000 did not respond to first reset\n"

L_.str.2:                               ## @.str.2
	.asciz	"dm9000 did not respond to second reset\n"

	.no_dead_strip	_dm9000_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_reset
_dm9000_reset:                          ; @dm9000_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
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x20, _DM9000_NCR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DM9000_NCR@GOTPAGEOFF]
Lloh4:
	adrp	x21, _NCR_RST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _NCR_RST@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x21]
Lloh6:
	adrp	x22, _NCR_MAC_LBK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NCR_MAC_LBK@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_iow
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ior
	tbz	w0, #0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_iow
	ldr	w1, [x20]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_iow
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ior
	tbnz	w0, #0, LBB0_4
; %bb.3:
	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
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	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	_dev_err
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resetting device\n"

	.comm	_DM9000_NCR,4,2                 ; @DM9000_NCR
	.comm	_NCR_RST,4,2                    ; @NCR_RST
	.comm	_NCR_MAC_LBK,4,2                ; @NCR_MAC_LBK
l_.str.1:                               ; @.str.1
	.asciz	"dm9000 did not respond to first reset\n"

l_.str.2:                               ; @.str.2
	.asciz	"dm9000 did not respond to second reset\n"

	.no_dead_strip	_dm9000_reset
.subsections_via_symbols
