	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_set_settings
_ks8695_set_settings:                   ## @ks8695_set_settings
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	movq	_SPEED_100@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	cmpq	(%r12), %rax
	jne	LBB0_2
LBB0_3:
	movq	8(%r15), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	cmpq	(%r13), %rax
	jne	LBB0_2
LBB0_5:
	movq	16(%r15), %rax
	movq	_PORT_MII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.6:
	movq	24(%r15), %rax
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.7:
	movq	32(%r15), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_9
## %bb.8:
	cmpq	%rcx, %rax
	je	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_19:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.10:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	testl	%eax, 40(%r15)
	je	LBB0_2
## %bb.11:
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$129, %eax
	je	LBB0_18
## %bb.13:
	cmpl	$130, %eax
	je	LBB0_2
	jmp	LBB0_22
LBB0_15:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_20
## %bb.16:
	cmpl	$129, %eax
	je	LBB0_18
## %bb.17:
	xorl	%ebx, %ebx
	cmpl	$130, %eax
	jne	LBB0_22
LBB0_18:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_20:
	movq	_KS8695_WMC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_WMC_WAND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_WMC_WANF100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WMC_WANFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%edi, %edx
	orl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	(%r15), %rax
	movq	8(%r15), %rsi
	xorl	%ebx, %ebx
	cmpq	(%r12), %rax
	cmovnel	%ebx, %ecx
	cmpq	(%r13), %rsi
	cmovnel	%ebx, %edi
	orl	%ecx, %edi
	jmp	LBB0_21
LBB0_14:
	movq	_KS8695_WMC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_WMC_WAND@GOTPCREL(%rip), %rcx
	movq	_WMC_WANA100F@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%rcx), %edx
	orl	%r9d, %edx
	movq	_WMC_WANA100H@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_WMC_WANA10F@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movl	%esi, %ecx
	orl	%r8d, %ecx
	orl	%edx, %ecx
	movq	_WMC_WANA10H@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	orl	%r10d, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	40(%r15), %edi
	movl	(%r13), %eax
	andl	%edi, %eax
	cmovnel	%r9d, %eax
	movl	(%r12), %edx
	andl	%edi, %edx
	cmovnel	%esi, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmovnel	%r8d, %eax
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	cmovnel	%r10d, %edi
	movq	_WMC_WANR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	orl	%eax, %edi
LBB0_21:
	orl	%edx, %edi
	movq	_KS8695_WMC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_PORT_MII,8,3                   ## @PORT_MII
	.comm	_XCVR_INTERNAL,8,3              ## @XCVR_INTERNAL
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_KS8695_WMC,8,3                 ## @KS8695_WMC
	.comm	_WMC_WAND,4,2                   ## @WMC_WAND
	.comm	_WMC_WANA100F,4,2               ## @WMC_WANA100F
	.comm	_WMC_WANA100H,4,2               ## @WMC_WANA100H
	.comm	_WMC_WANA10F,4,2                ## @WMC_WANA10F
	.comm	_WMC_WANA10H,4,2                ## @WMC_WANA10H
	.comm	_WMC_WANR,4,2                   ## @WMC_WANR
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WMC_WANF100,4,2                ## @WMC_WANF100
	.comm	_WMC_WANFF,4,2                  ## @WMC_WANFF
	.no_dead_strip	_ks8695_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_set_settings
_ks8695_set_settings:                   ; @ks8695_set_settings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x21, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SPEED_100@GOTPAGEOFF]
	ldr	x10, [x21]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x22, _DUPLEX_FULL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
Lloh10:
	adrp	x9, _PORT_MII@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PORT_MII@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x20, #24]
Lloh13:
	adrp	x9, _XCVR_INTERNAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x19, x0
Lloh16:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
	ldr	x8, [x20, #32]
Lloh18:
	ldr	x10, [x9]
Lloh19:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x10
	b.eq	LBB0_9
; %bb.5:
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_6:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	ldr	w8, [x20, #40]
Lloh24:
	adrp	x21, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh25:
	ldr	x21, [x21, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh26:
	adrp	x22, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh27:
	ldr	x22, [x22, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w9, w10, w9
Lloh28:
	adrp	x23, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh29:
	ldr	x23, [x23, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w9, w10
Lloh30:
	adrp	x24, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh31:
	ldr	x24, [x24, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
	ldr	w10, [x24]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_6
; %bb.11:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_20
; %bb.12:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.13:
	cmp	w8, #130
	b.eq	LBB0_6
	b	LBB0_18
LBB0_14:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_19
; %bb.15:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.16:
	cmp	w8, #130
	b.ne	LBB0_18
LBB0_17:
Lloh32:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_18:
	mov	w0, #0
	b	LBB0_8
LBB0_19:
	ldr	x8, [x19, #8]
Lloh34:
	adrp	x23, _KS8695_WMC@GOTPAGE
Lloh35:
	ldr	x23, [x23, _KS8695_WMC@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh36:
	adrp	x8, _WMC_WAND@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WMC_WAND@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh39:
	adrp	x9, _WMC_WANF100@GOTPAGE
Lloh40:
	ldr	x9, [x9, _WMC_WANF100@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _WMC_WANFF@GOTPAGE
Lloh43:
	ldr	x10, [x10, _WMC_WANFF@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	orr	w11, w10, w9
	bic	w8, w8, w11
	ldr	x11, [x21]
	ldp	x12, x13, [x20]
	cmp	x12, x11
	csel	w9, w9, wzr, eq
	orr	w8, w9, w8
	ldr	x9, [x22]
	cmp	x13, x9
	csel	w9, w10, wzr, eq
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	b	LBB0_21
LBB0_20:
	ldr	x8, [x19, #8]
Lloh45:
	adrp	x25, _KS8695_WMC@GOTPAGE
Lloh46:
	ldr	x25, [x25, _KS8695_WMC@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
Lloh47:
	adrp	x8, _WMC_WAND@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WMC_WAND@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _WMC_WANA100F@GOTPAGE
Lloh51:
	ldr	x9, [x9, _WMC_WANA100F@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
Lloh53:
	adrp	x10, _WMC_WANA100H@GOTPAGE
Lloh54:
	ldr	x10, [x10, _WMC_WANA100H@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh55:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh56:
	adrp	x11, _WMC_WANA10F@GOTPAGE
Lloh57:
	ldr	x11, [x11, _WMC_WANA10F@GOTPAGEOFF]
Lloh58:
	ldr	w11, [x11]
	orr	w8, w8, w11
Lloh59:
	adrp	x12, _WMC_WANA10H@GOTPAGE
Lloh60:
	ldr	x12, [x12, _WMC_WANA10H@GOTPAGEOFF]
Lloh61:
	ldr	w12, [x12]
	orr	w8, w8, w12
	bic	w8, w0, w8
	ldr	w13, [x20, #40]
	ldr	w14, [x24]
	tst	w14, w13
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	ldr	w9, [x23]
	tst	w9, w13
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	ldr	w9, [x22]
	tst	w9, w13
	csel	w9, wzr, w11, eq
	ldr	w10, [x21]
	tst	w10, w13
	csel	w10, wzr, w12, eq
Lloh62:
	adrp	x11, _WMC_WANR@GOTPAGE
Lloh63:
	ldr	x11, [x11, _WMC_WANR@GOTPAGEOFF]
Lloh64:
	ldr	w11, [x11]
	orr	w8, w8, w11
	orr	w8, w8, w9
	orr	w0, w8, w10
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
LBB0_21:
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_PORT_MII,8,3                   ; @PORT_MII
	.comm	_XCVR_INTERNAL,8,3              ; @XCVR_INTERNAL
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_KS8695_WMC,8,3                 ; @KS8695_WMC
	.comm	_WMC_WAND,4,2                   ; @WMC_WAND
	.comm	_WMC_WANA100F,4,2               ; @WMC_WANA100F
	.comm	_WMC_WANA100H,4,2               ; @WMC_WANA100H
	.comm	_WMC_WANA10F,4,2                ; @WMC_WANA10F
	.comm	_WMC_WANA10H,4,2                ; @WMC_WANA10H
	.comm	_WMC_WANR,4,2                   ; @WMC_WANR
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WMC_WANF100,4,2                ; @WMC_WANF100
	.comm	_WMC_WANFF,4,2                  ; @WMC_WANFF
	.no_dead_strip	_ks8695_set_settings
.subsections_via_symbols
