	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_device_announce
_niu_device_announce:                   ## @niu_device_announce
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rbx
	movl	(%rbx), %esi
	movslq	4(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	24(%r14), %rax
	movq	(%rax), %rdx
	movq	_PLAT_TYPE_ATCA_CP3220@GOTPCREL(%rip), %r8
	movl	(%rbx), %esi
	movl	(%r14), %eax
	movq	_NIU_FLAGS_XMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_NIU_FLAGS_10G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_NIU_FLAGS_FIBER@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpq	(%r8), %rdx
	jne	LBB0_2
## %bb.1:
	testl	%eax, %edi
	leaq	L_.str.7(%rip), %rdx
	leaq	L_.str.6(%rip), %r8
	jmp	LBB0_3
LBB0_2:
	movq	_NIU_FLAGS_XCVR_SERDES@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	leaq	L_.str.12(%rip), %r8
	leaq	L_.str.7(%rip), %rdx
	cmoveq	%r8, %rdx
	testl	%eax, %edi
	leaq	L_.str.11(%rip), %r8
LBB0_3:
	cmoveq	%rdx, %r8
	testl	%eax, %ecx
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rdx, %rcx
	testl	%eax, %ebx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	8(%r14), %rax
	movq	_MAC_XCVR_MII@GOTPCREL(%rip), %r9
	movq	_MAC_XCVR_PCS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	leaq	L_.str.9(%rip), %rbx
	leaq	L_.str.10(%rip), %rdi
	cmoveq	%rbx, %rdi
	cmpq	(%r9), %rax
	leaq	L_.str.8(%rip), %r9
	cmovneq	%rdi, %r9
	movl	16(%r14), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: NIU Ethernet %pM\n"

	.comm	_PLAT_TYPE_ATCA_CP3220,8,3      ## @PLAT_TYPE_ATCA_CP3220
L_.str.1:                               ## @.str.1
	.asciz	"%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n"

	.comm	_NIU_FLAGS_XMAC,4,2             ## @NIU_FLAGS_XMAC
L_.str.2:                               ## @.str.2
	.asciz	"XMAC"

L_.str.3:                               ## @.str.3
	.asciz	"BMAC"

	.comm	_NIU_FLAGS_10G,4,2              ## @NIU_FLAGS_10G
L_.str.4:                               ## @.str.4
	.asciz	"10G"

L_.str.5:                               ## @.str.5
	.asciz	"1G"

	.comm	_NIU_FLAGS_FIBER,4,2            ## @NIU_FLAGS_FIBER
L_.str.6:                               ## @.str.6
	.asciz	"RGMII FIBER"

L_.str.7:                               ## @.str.7
	.asciz	"SERDES"

	.comm	_MAC_XCVR_MII,8,3               ## @MAC_XCVR_MII
L_.str.8:                               ## @.str.8
	.asciz	"MII"

	.comm	_MAC_XCVR_PCS,8,3               ## @MAC_XCVR_PCS
L_.str.9:                               ## @.str.9
	.asciz	"PCS"

L_.str.10:                              ## @.str.10
	.asciz	"XPCS"

L_.str.11:                              ## @.str.11
	.asciz	"FIBER"

	.comm	_NIU_FLAGS_XCVR_SERDES,4,2      ## @NIU_FLAGS_XCVR_SERDES
L_.str.12:                              ## @.str.12
	.asciz	"COPPER"

	.no_dead_strip	_niu_device_announce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_device_announce
_niu_device_announce:                   ; @niu_device_announce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldp	w1, w2, [x20]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	x8, [x19, #24]
	ldr	x12, [x8]
Lloh2:
	adrp	x8, _PLAT_TYPE_ATCA_CP3220@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PLAT_TYPE_ATCA_CP3220@GOTPAGEOFF]
Lloh4:
	ldr	x13, [x8]
	ldr	w1, [x20]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _NIU_FLAGS_XMAC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NIU_FLAGS_XMAC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _NIU_FLAGS_10G@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NIU_FLAGS_10G@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x10]
Lloh11:
	adrp	x10, _NIU_FLAGS_FIBER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NIU_FLAGS_FIBER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w10, w10, w8
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x12, l_.str.6@PAGE
Lloh15:
	add	x12, x12, l_.str.6@PAGEOFF
Lloh16:
	adrp	x13, l_.str.7@PAGE
Lloh17:
	add	x13, x13, l_.str.7@PAGEOFF
	cmp	w10, #0
	csel	x10, x13, x12, eq
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x12, _NIU_FLAGS_XCVR_SERDES@GOTPAGE
Lloh19:
	ldr	x12, [x12, _NIU_FLAGS_XCVR_SERDES@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
Lloh21:
	adrp	x13, l_.str.7@PAGE
Lloh22:
	add	x13, x13, l_.str.7@PAGEOFF
Lloh23:
	adrp	x14, l_.str.12@PAGE
Lloh24:
	add	x14, x14, l_.str.12@PAGEOFF
	tst	w12, w8
	csel	x12, x14, x13, eq
Lloh25:
	adrp	x13, l_.str.11@PAGE
Lloh26:
	add	x13, x13, l_.str.11@PAGEOFF
	cmp	w10, #0
	csel	x10, x12, x13, eq
LBB0_3:
Lloh27:
	adrp	x12, l_.str.4@PAGE
Lloh28:
	add	x12, x12, l_.str.4@PAGEOFF
Lloh29:
	adrp	x13, l_.str.5@PAGE
Lloh30:
	add	x13, x13, l_.str.5@PAGEOFF
	tst	w11, w8
	csel	x11, x13, x12, eq
Lloh31:
	adrp	x12, l_.str.2@PAGE
Lloh32:
	add	x12, x12, l_.str.2@PAGEOFF
Lloh33:
	adrp	x13, l_.str.3@PAGE
Lloh34:
	add	x13, x13, l_.str.3@PAGEOFF
	tst	w9, w8
	csel	x2, x13, x12, eq
	ldr	x8, [x19, #8]
Lloh35:
	adrp	x9, _MAC_XCVR_MII@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MAC_XCVR_MII@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
Lloh38:
	adrp	x12, _MAC_XCVR_PCS@GOTPAGE
Lloh39:
	ldr	x12, [x12, _MAC_XCVR_PCS@GOTPAGEOFF]
Lloh40:
	ldr	x12, [x12]
Lloh41:
	adrp	x13, l_.str.10@PAGE
Lloh42:
	add	x13, x13, l_.str.10@PAGEOFF
Lloh43:
	adrp	x14, l_.str.9@PAGE
Lloh44:
	add	x14, x14, l_.str.9@PAGEOFF
	cmp	x8, x12
	csel	x12, x14, x13, eq
Lloh45:
	adrp	x13, l_.str.8@PAGE
Lloh46:
	add	x13, x13, l_.str.8@PAGEOFF
	cmp	x8, x9
	csel	x8, x13, x12, eq
	ldr	w9, [x19, #16]
	stp	x8, x9, [sp, #16]
	stp	x11, x10, [sp]
Lloh47:
	adrp	x0, l_.str.1@PAGE
Lloh48:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: NIU Ethernet %pM\n"

	.comm	_PLAT_TYPE_ATCA_CP3220,8,3      ; @PLAT_TYPE_ATCA_CP3220
l_.str.1:                               ; @.str.1
	.asciz	"%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n"

	.comm	_NIU_FLAGS_XMAC,4,2             ; @NIU_FLAGS_XMAC
l_.str.2:                               ; @.str.2
	.asciz	"XMAC"

l_.str.3:                               ; @.str.3
	.asciz	"BMAC"

	.comm	_NIU_FLAGS_10G,4,2              ; @NIU_FLAGS_10G
l_.str.4:                               ; @.str.4
	.asciz	"10G"

l_.str.5:                               ; @.str.5
	.asciz	"1G"

	.comm	_NIU_FLAGS_FIBER,4,2            ; @NIU_FLAGS_FIBER
l_.str.6:                               ; @.str.6
	.asciz	"RGMII FIBER"

l_.str.7:                               ; @.str.7
	.asciz	"SERDES"

	.comm	_MAC_XCVR_MII,8,3               ; @MAC_XCVR_MII
l_.str.8:                               ; @.str.8
	.asciz	"MII"

	.comm	_MAC_XCVR_PCS,8,3               ; @MAC_XCVR_PCS
l_.str.9:                               ; @.str.9
	.asciz	"PCS"

l_.str.10:                              ; @.str.10
	.asciz	"XPCS"

l_.str.11:                              ; @.str.11
	.asciz	"FIBER"

	.comm	_NIU_FLAGS_XCVR_SERDES,4,2      ; @NIU_FLAGS_XCVR_SERDES
l_.str.12:                              ; @.str.12
	.asciz	"COPPER"

	.no_dead_strip	_niu_device_announce
.subsections_via_symbols
