	.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_6
## %bb.1:
	movq	_MII_VSC8244_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_PHY_ID_VSC8244@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_MII_VSC8244_IMASK_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_MII_VSC8244_ISTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	_MII_VSC8244_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_2:
	movq	_MII_VSC8221_IMASK_MASK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%rbx, %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_8:
	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_VSC8244,8,3             ## @PHY_ID_VSC8244
	.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_VSC8244@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_ID_VSC8244@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _MII_VSC8244_IMASK_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MII_VSC8244_IMASK_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x11, _MII_VSC8221_IMASK_MASK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MII_VSC8221_IMASK_MASK@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	mov	x0, x19
	b	LBB0_4
LBB0_2:
Lloh13:
	adrp	x8, _MII_VSC8244_ISTAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MII_VSC8244_ISTAT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _MII_VSC8244_IMASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MII_VSC8244_IMASK@GOTPAGEOFF]
Lloh18:
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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_VSC8244,8,3             ; @PHY_ID_VSC8244
	.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
