	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_tangox_init
_nb8800_tangox_init:                    ## @nb8800_tangox_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movl	(%rax), %edi
	leal	-128(%rdi), %ecx
	cmpl	$6, %ecx
	jae	LBB0_1
## %bb.2:
	movslq	%ecx, %rcx
	leaq	l_switch.table.nb8800_tangox_init(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %edx
	movq	_NB8800_TANGOX_PAD_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_nb8800_writeb
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_phy_modes
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAD_MODE_MII,4,2               ## @PAD_MODE_MII
	.comm	_PAD_MODE_RGMII,4,2             ## @PAD_MODE_RGMII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported phy mode %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NB8800_TANGOX_PAD_MODE,4,2     ## @NB8800_TANGOX_PAD_MODE
	.no_dead_strip	_nb8800_tangox_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.nb8800_tangox_init
l_switch.table.nb8800_tangox_init:
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_MII
	.quad	_PAD_MODE_MII

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_tangox_init
_nb8800_tangox_init:                    ; @nb8800_tangox_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_switch.table.nb8800_tangox_init@PAGE
Lloh1:
	add	x8, x8, l_switch.table.nb8800_tangox_init@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w2, [x8]
Lloh2:
	adrp	x8, _NB8800_TANGOX_PAD_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NB8800_TANGOX_PAD_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_nb8800_writeb
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w19, [x19]
	mov	x0, x8
	bl	_phy_modes
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAD_MODE_MII,4,2               ; @PAD_MODE_MII
	.comm	_PAD_MODE_RGMII,4,2             ; @PAD_MODE_RGMII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported phy mode %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NB8800_TANGOX_PAD_MODE,4,2     ; @NB8800_TANGOX_PAD_MODE
	.no_dead_strip	_nb8800_tangox_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.nb8800_tangox_init
l_switch.table.nb8800_tangox_init:
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_RGMII
	.quad	_PAD_MODE_MII
	.quad	_PAD_MODE_MII

.subsections_via_symbols
