	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_set_link_ksettings
_rtl8152_set_link_ksettings:            ## @rtl8152_set_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	%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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_test_bit
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_RTL_ADVERTISED_10_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movq	_ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_test_bit
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_RTL_ADVERTISED_10_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movq	_ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_test_bit
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_RTL_ADVERTISED_100_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_8:
	movq	_ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_test_bit
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_RTL_ADVERTISED_100_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_10:
	orl	%ecx, %r13d
	orl	%ebx, %r15d
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_test_bit
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_RTL_ADVERTISED_1000_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	orl	%r13d, %r15d
	movq	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_test_bit
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_14
## %bb.13:
	movq	_RTL_ADVERTISED_1000_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	orl	%eax, %ebx
	orl	%ebx, %r15d
	movq	%r14, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	8(%r12), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	callq	_rtl8152_set_speed
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	8(%r12), %eax
	movl	%eax, 20(%r14)
	movl	4(%r12), %eax
	movl	%eax, 16(%r14)
	movl	(%r12), %eax
	movl	%eax, 12(%r14)
	movl	%r15d, 8(%r14)
LBB0_16:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	(%r14), %edi
	callq	_usb_autopm_put_interface
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_RTL_ADVERTISED_10_HALF,4,2     ## @RTL_ADVERTISED_10_HALF
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.comm	_RTL_ADVERTISED_10_FULL,4,2     ## @RTL_ADVERTISED_10_FULL
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_RTL_ADVERTISED_100_HALF,4,2    ## @RTL_ADVERTISED_100_HALF
	.comm	_ETHTOOL_LINK_MODE_100baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Full_BIT
	.comm	_RTL_ADVERTISED_100_FULL,4,2    ## @RTL_ADVERTISED_100_FULL
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_RTL_ADVERTISED_1000_HALF,4,2   ## @RTL_ADVERTISED_1000_HALF
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_RTL_ADVERTISED_1000_FULL,4,2   ## @RTL_ADVERTISED_1000_FULL
	.no_dead_strip	_rtl8152_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_set_link_ksettings
_rtl8152_set_link_ksettings:            ; @rtl8152_set_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
Lloh3:
	adrp	x8, _RTL_ADVERTISED_10_HALF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL_ADVERTISED_10_HALF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, wzr, w8, eq
Lloh6:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
Lloh9:
	adrp	x8, _RTL_ADVERTISED_10_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTL_ADVERTISED_10_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w21
Lloh12:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
Lloh15:
	adrp	x8, _RTL_ADVERTISED_100_HALF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTL_ADVERTISED_100_HALF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
Lloh18:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
Lloh21:
	adrp	x8, _RTL_ADVERTISED_100_FULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RTL_ADVERTISED_100_FULL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
Lloh24:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
Lloh27:
	adrp	x8, _RTL_ADVERTISED_1000_HALF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTL_ADVERTISED_1000_HALF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
Lloh30:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
Lloh33:
	adrp	x8, _RTL_ADVERTISED_1000_FULL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTL_ADVERTISED_1000_FULL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w23, w21, w8
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x4, x23
	bl	_rtl8152_set_speed
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	str	w8, [x19, #20]
	ldr	d0, [x20]
	stur	d0, [x19, #12]
	str	w23, [x19, #8]
LBB0_3:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
	b	LBB0_5
LBB0_4:
	mov	x22, x0
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_RTL_ADVERTISED_10_HALF,4,2     ; @RTL_ADVERTISED_10_HALF
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.comm	_RTL_ADVERTISED_10_FULL,4,2     ; @RTL_ADVERTISED_10_FULL
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_RTL_ADVERTISED_100_HALF,4,2    ; @RTL_ADVERTISED_100_HALF
	.comm	_ETHTOOL_LINK_MODE_100baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Full_BIT
	.comm	_RTL_ADVERTISED_100_FULL,4,2    ; @RTL_ADVERTISED_100_FULL
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_RTL_ADVERTISED_1000_HALF,4,2   ; @RTL_ADVERTISED_1000_HALF
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_RTL_ADVERTISED_1000_FULL,4,2   ; @RTL_ADVERTISED_1000_FULL
	.no_dead_strip	_rtl8152_set_link_ksettings
.subsections_via_symbols
