	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_settings
_get_settings:                          ## @get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	16(%r14), %eax
	movl	%eax, 40(%rbx)
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_ethtool_cmd_speed_set
	movl	8(%r14), %r15d
	jmp	LBB0_3
LBB0_2:
	movl	$-1, %r15d
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ethtool_cmd_speed_set
LBB0_3:
	movl	%r15d, 4(%rbx)
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	_XCVR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_XCVR_EXTERNAL,4,2              ## @XCVR_EXTERNAL
	.no_dead_strip	_get_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_settings
_get_settings:                          ; @get_settings
	.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, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	str	w8, [x19]
	ldr	w8, [x0, #16]
	str	w8, [x19, #40]
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_ethtool_cmd_speed_set
	ldr	w21, [x20, #8]
	b	LBB0_3
LBB0_2:
	mov	w21, #-1
	mov	x0, x19
	mov	w1, #-1
	bl	_ethtool_cmd_speed_set
LBB0_3:
	str	w21, [x19, #4]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _PORT_FIBRE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PORT_FIBRE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	stp	w9, w8, [x19, #32]
Lloh7:
	adrp	x8, _XCVR_EXTERNAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XCVR_EXTERNAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	stp	w9, w8, [x19, #24]
	stp	xzr, xzr, [x19, #8]
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_XCVR_EXTERNAL,4,2              ; @XCVR_EXTERNAL
	.no_dead_strip	_get_settings
.subsections_via_symbols
