	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_set_phys_id
_e100_set_phys_id:                      ## @e100_set_phys_id
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	(%rax), %rsi
	movq	_phy_82552_v@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_1
## %bb.2:
	movq	_E100_82552_LED_OVERRIDE@GOTPCREL(%rip), %rcx
	cmpl	$131, %ebx
	je	LBB0_4
LBB0_5:
	movl	(%rcx), %edx
	cmpl	$129, %ebx
	je	LBB0_10
## %bb.6:
	xorl	%ecx, %ecx
	cmpl	$128, %ebx
	jne	LBB0_13
## %bb.7:
	cmpq	%rdi, %rsi
	jne	LBB0_9
## %bb.8:
	movq	_E100_82552_LED_ON@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_1:
	movq	_MII_LED_CONTROL@GOTPCREL(%rip), %rcx
	cmpl	$131, %ebx
	jne	LBB0_5
LBB0_4:
	movl	$2, %eax
	jmp	LBB0_14
LBB0_10:
	movl	$4, %ecx
	cmpq	%rdi, %rsi
	jne	LBB0_13
## %bb.11:
	movq	_E100_82552_LED_OFF@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %ecx
	jmp	LBB0_13
LBB0_9:
	movl	12(%rax), %ecx
	movq	_mac_82559_D101M@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %ecx
	setl	%dil
	leal	(%rdi,%rdi), %ecx
	addl	$5, %ecx
LBB0_13:
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_mdio_write
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_82552_v,8,3                ## @phy_82552_v
	.comm	_E100_82552_LED_OVERRIDE,4,2    ## @E100_82552_LED_OVERRIDE
	.comm	_MII_LED_CONTROL,4,2            ## @MII_LED_CONTROL
	.comm	_E100_82552_LED_ON,4,2          ## @E100_82552_LED_ON
	.comm	_mac_82559_D101M,4,2            ## @mac_82559_D101M
	.comm	_E100_82552_LED_OFF,4,2         ## @E100_82552_LED_OFF
	.no_dead_strip	_e100_set_phys_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_set_phys_id
_e100_set_phys_id:                      ; @e100_set_phys_id
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _phy_82552_v@GOTPAGE
Lloh1:
	ldr	x9, [x9, _phy_82552_v@GOTPAGEOFF]
Lloh2:
	adrp	x10, _E100_82552_LED_OVERRIDE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _E100_82552_LED_OVERRIDE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _MII_LED_CONTROL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MII_LED_CONTROL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x10, x10, x11, eq
	cmp	w20, #131
	b.eq	LBB0_5
; %bb.1:
	ldr	w2, [x10]
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_7
; %bb.3:
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh7:
	adrp	x8, _E100_82552_LED_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E100_82552_LED_ON@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	b	LBB0_9
LBB0_5:
	mov	w0, #2
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x10, _E100_82552_LED_OFF@GOTPAGE
Lloh11:
	ldr	x10, [x10, _E100_82552_LED_OFF@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	cmp	x8, x9
	mov	w8, #4
	csel	w3, w10, w8, eq
	b	LBB0_9
LBB0_7:
	mov	w3, #0
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _mac_82559_D101M@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mac_82559_D101M@GOTPAGEOFF]
	ldr	w9, [x0, #12]
Lloh15:
	ldr	w8, [x8]
	mov	w10, #5
	mov	w11, #7
	cmp	w9, w8
	csel	w3, w11, w10, lt
LBB0_9:
	ldr	w1, [x0, #8]
	mov	x0, x19
	bl	_mdio_write
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_82552_v,8,3                ; @phy_82552_v
	.comm	_E100_82552_LED_OVERRIDE,4,2    ; @E100_82552_LED_OVERRIDE
	.comm	_MII_LED_CONTROL,4,2            ; @MII_LED_CONTROL
	.comm	_E100_82552_LED_ON,4,2          ; @E100_82552_LED_ON
	.comm	_mac_82559_D101M,4,2            ; @mac_82559_D101M
	.comm	_E100_82552_LED_OFF,4,2         ; @E100_82552_LED_OFF
	.no_dead_strip	_e100_set_phys_id
.subsections_via_symbols
