	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_phy_setEA
_jme_phy_setEA:                         ## @jme_phy_setEA
	.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, %rbx
	movq	8(%rdi), %rdi
	movq	_PCI_PRIV_SHARE_NICCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	-20(%rbp), %eax
	andl	$3, %eax
	movq	_JME_FLAG_PHYEA_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$5, %eax
	je	LBB0_8
## %bb.4:
	jg	LBB0_10
	jmp	LBB0_5
LBB0_7:
	movl	(%rbx), %eax
	cmpl	$5, %eax
	jne	LBB0_11
LBB0_8:
	movl	4(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_19
## %bb.9:
	cmpl	$2, %eax
	jne	LBB0_10
	jmp	LBB0_19
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_19
LBB0_11:
	jle	LBB0_12
LBB0_10:
	movq	_JM_PHY_EXT_COMM_0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$138, %edx
	callq	_jme_phy_specreg_write
	movq	_JM_PHY_EXT_COMM_1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16649, %edx                    ## imm = 0x4109
LBB0_18:
	callq	_jme_phy_specreg_write
LBB0_19:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	cmpl	$2, %eax
	je	LBB0_13
LBB0_5:
	cmpl	$3, %eax
	jne	LBB0_19
## %bb.6:
	movl	4(%rbx), %eax
	decl	%eax
	movl	$57480, %edx                    ## imm = 0xE088
	cmpl	$2, %eax
	jae	LBB0_19
	jmp	LBB0_17
LBB0_13:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	$16522, %edx                    ## imm = 0x408A
	cmpl	$2, %eax
	je	LBB0_17
	jmp	LBB0_19
LBB0_16:
	movl	$24714, %edx                    ## imm = 0x608A
LBB0_17:
	movq	_JM_PHY_EXT_COMM_0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_PRIV_SHARE_NICCTRL,4,2     ## @PCI_PRIV_SHARE_NICCTRL
	.comm	_JME_FLAG_PHYEA_ENABLE,4,2      ## @JME_FLAG_PHYEA_ENABLE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_JM_PHY_EXT_COMM_0_REG,4,2      ## @JM_PHY_EXT_COMM_0_REG
	.comm	_JM_PHY_EXT_COMM_1_REG,4,2      ## @JM_PHY_EXT_COMM_1_REG
	.no_dead_strip	_jme_phy_setEA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_phy_setEA
_jme_phy_setEA:                         ; @jme_phy_setEA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, [x0, #8]
Lloh0:
	adrp	x8, _PCI_PRIV_SHARE_NICCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_PRIV_SHARE_NICCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	and	w8, w8, #0x3
Lloh3:
	adrp	x9, _JME_FLAG_PHYEA_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JME_FLAG_PHYEA_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #5
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.5:
	cmp	w8, #2
	b.ne	LBB0_11
	b	LBB0_14
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #5
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x19, #4]
	cmp	w8, #3
	ccmp	w8, #2, #4, ls
	b.ne	LBB0_11
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_9:
	b.gt	LBB0_11
	b	LBB0_16
LBB0_10:
	b.le	LBB0_15
LBB0_11:
Lloh9:
	adrp	x8, _JM_PHY_EXT_COMM_0_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JM_PHY_EXT_COMM_0_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #138
	bl	_jme_phy_specreg_write
Lloh12:
	adrp	x8, _JM_PHY_EXT_COMM_1_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JM_PHY_EXT_COMM_1_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16649
LBB0_12:
	bl	_jme_phy_specreg_write
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	cmp	w8, #2
	b.eq	LBB0_19
LBB0_16:
	cmp	w8, #3
	b.ne	LBB0_13
; %bb.17:
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	cmp	w8, #2
	b.hs	LBB0_13
; %bb.18:
	mov	w2, #57480
	b	LBB0_23
LBB0_19:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_22
; %bb.20:
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.21:
	mov	w2, #16522
	b	LBB0_23
LBB0_22:
	mov	w2, #24714
LBB0_23:
Lloh15:
	adrp	x8, _JM_PHY_EXT_COMM_0_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _JM_PHY_EXT_COMM_0_REG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_PRIV_SHARE_NICCTRL,4,2     ; @PCI_PRIV_SHARE_NICCTRL
	.comm	_JME_FLAG_PHYEA_ENABLE,4,2      ; @JME_FLAG_PHYEA_ENABLE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_JM_PHY_EXT_COMM_0_REG,4,2      ; @JM_PHY_EXT_COMM_0_REG
	.comm	_JM_PHY_EXT_COMM_1_REG,4,2      ; @JM_PHY_EXT_COMM_1_REG
	.no_dead_strip	_jme_phy_setEA
.subsections_via_symbols
