	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc82xx_config_intr
_vsc82xx_config_intr:                   ## @vsc82xx_config_intr
	.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
	movq	(%rdi), %rax
	movq	_PHY_INTERRUPT_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_MII_VSC8244_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_PHY_ID_VSC8234@GOTPCREL(%rip), %r8
	movq	_PHY_ID_VSC8244@GOTPCREL(%rip), %r9
	movq	_PHY_ID_VSC8572@GOTPCREL(%rip), %r10
	movq	_PHY_ID_VSC8601@GOTPCREL(%rip), %rdi
	movq	_MII_VSC8244_IMASK_MASK@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpq	(%rdi), %rax
	je	LBB0_3
## %bb.2:
	movq	_MII_VSC8221_IMASK_MASK@GOTPCREL(%rip), %rdx
LBB0_3:
	cmpq	(%r10), %rax
	cmoveq	%rcx, %rdx
	cmpq	(%r9), %rax
	cmoveq	%rcx, %rdx
	cmpq	(%r8), %rax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %edx
	movq	%rbx, %rdi
	jmp	LBB0_6
LBB0_4:
	movq	_MII_VSC8244_ISTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_MII_VSC8244_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERRUPT_ENABLED,8,3      ## @PHY_INTERRUPT_ENABLED
	.comm	_MII_VSC8244_IMASK,4,2          ## @MII_VSC8244_IMASK
	.comm	_PHY_ID_VSC8234,8,3             ## @PHY_ID_VSC8234
	.comm	_PHY_ID_VSC8244,8,3             ## @PHY_ID_VSC8244
	.comm	_PHY_ID_VSC8572,8,3             ## @PHY_ID_VSC8572
	.comm	_PHY_ID_VSC8601,8,3             ## @PHY_ID_VSC8601
	.comm	_MII_VSC8244_IMASK_MASK,4,2     ## @MII_VSC8244_IMASK_MASK
	.comm	_MII_VSC8221_IMASK_MASK,4,2     ## @MII_VSC8221_IMASK_MASK
	.comm	_MII_VSC8244_ISTAT,4,2          ## @MII_VSC8244_ISTAT
	.no_dead_strip	_vsc82xx_config_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc82xx_config_intr
_vsc82xx_config_intr:                   ; @vsc82xx_config_intr
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_INTERRUPT_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERRUPT_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MII_VSC8244_IMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_VSC8244_IMASK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _PHY_ID_VSC8234@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_ID_VSC8234@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _PHY_ID_VSC8244@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PHY_ID_VSC8244@GOTPAGEOFF]
Lloh11:
	adrp	x11, _PHY_ID_VSC8572@GOTPAGE
Lloh12:
	ldr	x11, [x11, _PHY_ID_VSC8572@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	ldr	x11, [x11]
Lloh15:
	adrp	x12, _PHY_ID_VSC8601@GOTPAGE
Lloh16:
	ldr	x12, [x12, _PHY_ID_VSC8601@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	cmp	x8, x12
	ccmp	x8, x11, #4, ne
	ccmp	x8, x10, #4, ne
Lloh18:
	adrp	x10, _MII_VSC8244_IMASK_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MII_VSC8244_IMASK_MASK@GOTPAGEOFF]
Lloh20:
	adrp	x11, _MII_VSC8221_IMASK_MASK@GOTPAGE
Lloh21:
	ldr	x11, [x11, _MII_VSC8221_IMASK_MASK@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	mov	x0, x19
	b	LBB0_4
LBB0_2:
Lloh22:
	adrp	x8, _MII_VSC8244_ISTAT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MII_VSC8244_ISTAT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh25:
	adrp	x8, _MII_VSC8244_IMASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MII_VSC8244_IMASK@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERRUPT_ENABLED,8,3      ; @PHY_INTERRUPT_ENABLED
	.comm	_MII_VSC8244_IMASK,4,2          ; @MII_VSC8244_IMASK
	.comm	_PHY_ID_VSC8234,8,3             ; @PHY_ID_VSC8234
	.comm	_PHY_ID_VSC8244,8,3             ; @PHY_ID_VSC8244
	.comm	_PHY_ID_VSC8572,8,3             ; @PHY_ID_VSC8572
	.comm	_PHY_ID_VSC8601,8,3             ; @PHY_ID_VSC8601
	.comm	_MII_VSC8244_IMASK_MASK,4,2     ; @MII_VSC8244_IMASK_MASK
	.comm	_MII_VSC8221_IMASK_MASK,4,2     ; @MII_VSC8221_IMASK_MASK
	.comm	_MII_VSC8244_ISTAT,4,2          ; @MII_VSC8244_ISTAT
	.no_dead_strip	_vsc82xx_config_intr
.subsections_via_symbols
