	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_get_link_ksettings
_pcnet32_get_link_ksettings:            ## @pcnet32_get_link_ksettings
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 56(%rbx)
	je	LBB0_2
## %bb.1:
	addq	$48, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mii_ethtool_get_link_ksettings
	jmp	LBB0_13
LBB0_2:
	movq	(%rbx), %rax
	movq	_PCNET32_79C970A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.3:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.4:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	32(%rbx), %rax
	movl	(%r12), %edi
	movl	$4, %esi
	callq	*(%rax)
	cmpl	$192, %eax
	jne	LBB0_8
LBB0_7:
	movq	_PORT_AUI@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	cmpq	$0, 24(%rbx)
	je	LBB0_7
LBB0_8:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	(%r14), %edi
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_AUI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCNET32_79C970A,8,3            ## @PCNET32_79C970A
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_PORT_AUI,8,3                   ## @PORT_AUI
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_AUI,4,2              ## @SUPPORTED_AUI
	.no_dead_strip	_pcnet32_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_get_link_ksettings
_pcnet32_get_link_ksettings:            ; @pcnet32_get_link_ksettings
	.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	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x21, #48
	mov	x1, x20
	bl	_mii_ethtool_get_link_ksettings
	b	LBB0_9
LBB0_2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PCNET32_79C970A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCNET32_79C970A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	ldr	w0, [x22]
	mov	w1, #4
	blr	x8
	cmp	w0, #192
	b.ne	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _PORT_AUI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_AUI@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh11:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
	ldr	x9, [x21, #24]
Lloh13:
	adrp	x10, _PORT_AUI@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PORT_AUI@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	x8, [x21, #16]
Lloh17:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh19:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
Lloh21:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh24:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SUPPORTED_AUI@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SUPPORTED_AUI@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_ethtool_convert_legacy_u32_to_link_mode
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCNET32_79C970A,8,3            ; @PCNET32_79C970A
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_PORT_AUI,8,3                   ; @PORT_AUI
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_AUI,4,2              ; @SUPPORTED_AUI
	.no_dead_strip	_pcnet32_get_link_ksettings
.subsections_via_symbols
