	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_show_carrier
_dm9000_show_carrier:                   ## @dm9000_show_carrier
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	movq	_DM9000_NCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm9000_read_locked
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*8(%rbx)
	movl	(%rbx), %edi
	movl	(%r13), %edx
	movq	_NSR_SPEED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	movl	$100, %esi
	movl	$10, %ecx
	cmovel	%esi, %ecx
	movq	_NCR_FDX@GOTPCREL(%rip), %rsi
	andl	(%rsi), %r15d
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rsi, %r8
	leaq	L_.str(%rip), %rsi
	movl	%eax, %r9d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_2:
	movl	(%rbx), %edi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM9000_NCR,4,2                 ## @DM9000_NCR
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link up, %dMbps, %s-duplex, lpa 0x%04X\n"

	.comm	_NSR_SPEED,4,2                  ## @NSR_SPEED
	.comm	_NCR_FDX,4,2                    ## @NCR_FDX
L_.str.1:                               ## @.str.1
	.asciz	"full"

L_.str.2:                               ## @.str.2
	.asciz	"half"

L_.str.3:                               ## @.str.3
	.asciz	"%s: link down\n"

	.no_dead_strip	_dm9000_show_carrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_show_carrier
_dm9000_show_carrier:                   ; @dm9000_show_carrier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x0, #24]
Lloh0:
	adrp	x8, _DM9000_NCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM9000_NCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dm9000_read_locked
	cbz	w22, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldp	w1, w0, [x20, #16]
Lloh3:
	adrp	x9, _MII_LPA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MII_LPA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20]
	ldr	w2, [x23]
Lloh6:
	adrp	x9, _NSR_SPEED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NSR_SPEED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _NCR_FDX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NCR_FDX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, l_.str.1@PAGE
Lloh13:
	add	x11, x11, l_.str.1@PAGEOFF
Lloh14:
	adrp	x12, l_.str.2@PAGE
Lloh15:
	add	x12, x12, l_.str.2@PAGEOFF
	tst	w10, w21
	csel	x10, x12, x11, eq
	stp	x10, x0, [sp, #8]
	tst	w9, w19
	mov	w9, #10
	mov	w11, #100
	csel	x9, x11, x9, eq
	str	x9, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	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
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	w0, [x20]
	ldr	w2, [x23]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	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
	add	sp, sp, #96
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DM9000_NCR,4,2                 ; @DM9000_NCR
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link up, %dMbps, %s-duplex, lpa 0x%04X\n"

	.comm	_NSR_SPEED,4,2                  ; @NSR_SPEED
	.comm	_NCR_FDX,4,2                    ; @NCR_FDX
l_.str.1:                               ; @.str.1
	.asciz	"full"

l_.str.2:                               ; @.str.2
	.asciz	"half"

l_.str.3:                               ; @.str.3
	.asciz	"%s: link down\n"

	.no_dead_strip	_dm9000_show_carrier
.subsections_via_symbols
