	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	_DM9000_NCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm9000_read_locked
	movl	(%rbx), %edi
	movl	(%r12), %edx
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	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), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_2:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM9000_NCR,4,2                 ## @DM9000_NCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link up, %dMbps, %s-duplex, no LPA\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, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _DM9000_NCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM9000_NCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dm9000_read_locked
	mov	x8, x0
	ldr	w0, [x21]
	ldr	w2, [x22]
	cbz	w20, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _NSR_SPEED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NSR_SPEED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NCR_FDX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NCR_FDX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, l_.str.1@PAGE
Lloh10:
	add	x11, x11, l_.str.1@PAGEOFF
Lloh11:
	adrp	x12, l_.str.2@PAGE
Lloh12:
	add	x12, x12, l_.str.2@PAGEOFF
	tst	w10, w8
	csel	x8, x12, x11, eq
	tst	w9, w19
	mov	w9, #10
	mov	w10, #100
	csel	x9, x10, x9, eq
	stp	x9, x8, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	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
	add	sp, sp, #64
	ret
LBB0_2:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@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
	add	sp, sp, #64
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DM9000_NCR,4,2                 ; @DM9000_NCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link up, %dMbps, %s-duplex, no LPA\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
