	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_get_settings
_ql_get_settings:                       ## @ql_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, %rdi
	callq	_ql_supported_modes
	movq	%rax, 32(%rbx)
	movq	_QL_LINK_OPTICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %ecx
	movl	%ecx, 24(%rbx)
LBB0_3:
	movl	%eax, 28(%rbx)
	movq	%r14, %rdi
	callq	_ql_supported_modes
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	callq	_ql_get_auto_cfg_status
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_ql_get_speed
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_ql_get_full_dup
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCVR_INTERNAL,4,2              ## @XCVR_INTERNAL
	.comm	_QL_LINK_OPTICAL,4,2            ## @QL_LINK_OPTICAL
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.no_dead_strip	_ql_get_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_get_settings
_ql_get_settings:                       ; @ql_get_settings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _XCVR_INTERNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	bl	_ql_supported_modes
	str	x0, [x19, #32]
Lloh3:
	adrp	x8, _QL_LINK_OPTICAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QL_LINK_OPTICAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20]
	str	w9, [x19, #24]
LBB0_3:
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_ql_supported_modes
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_ql_get_auto_cfg_status
	str	w0, [x19, #8]
	mov	x0, x20
	bl	_ql_get_speed
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_ql_get_full_dup
	str	w0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XCVR_INTERNAL,4,2              ; @XCVR_INTERNAL
	.comm	_QL_LINK_OPTICAL,4,2            ; @QL_LINK_OPTICAL
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.no_dead_strip	_ql_get_settings
.subsections_via_symbols
