	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kszphy_config_intr
_kszphy_config_intr:                    ## @kszphy_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_2:
	movq	_KSZPHY_CTRL_INT_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	_MII_KSZPHY_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	notl	%ebx
	andl	%ebx, %eax
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_phy_write
	movq	(%r14), %rax
	movq	_PHY_INTERRUPT_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_KSZPHY_INTCS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_6:
	movq	_MII_KSZPHY_INTCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KSZPHY_CTRL_INT_ACTIVE_HIGH,4,2 ## @KSZPHY_CTRL_INT_ACTIVE_HIGH
	.comm	_MII_KSZPHY_CTRL,4,2            ## @MII_KSZPHY_CTRL
	.comm	_PHY_INTERRUPT_ENABLED,8,3      ## @PHY_INTERRUPT_ENABLED
	.comm	_KSZPHY_INTCS_ALL,4,2           ## @KSZPHY_INTCS_ALL
	.comm	_MII_KSZPHY_INTCS,4,2           ## @MII_KSZPHY_INTCS
	.no_dead_strip	_kszphy_config_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kszphy_config_intr
_kszphy_config_intr:                    ; @kszphy_config_intr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w20, [x8]
	cbnz	w20, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _KSZPHY_CTRL_INT_ACTIVE_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KSZPHY_CTRL_INT_ACTIVE_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
LBB0_3:
Lloh3:
	adrp	x21, _MII_KSZPHY_CTRL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MII_KSZPHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_5
; %bb.4:
	bic	w2, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_write
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _PHY_INTERRUPT_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHY_INTERRUPT_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _KSZPHY_INTCS_ALL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KSZPHY_INTCS_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w2, w10, wzr, eq
Lloh11:
	adrp	x8, _MII_KSZPHY_INTCS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_KSZPHY_INTCS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phy_write
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KSZPHY_CTRL_INT_ACTIVE_HIGH,4,2 ; @KSZPHY_CTRL_INT_ACTIVE_HIGH
	.comm	_MII_KSZPHY_CTRL,4,2            ; @MII_KSZPHY_CTRL
	.comm	_PHY_INTERRUPT_ENABLED,8,3      ; @PHY_INTERRUPT_ENABLED
	.comm	_KSZPHY_INTCS_ALL,4,2           ; @KSZPHY_INTCS_ALL
	.comm	_MII_KSZPHY_INTCS,4,2           ; @MII_KSZPHY_INTCS
	.no_dead_strip	_kszphy_config_intr
.subsections_via_symbols
