	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_pci_get_linkcontrol_field
_rtl_pci_get_linkcontrol_field:         ## @rtl_pci_get_linkcontrol_field
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_rtl_pcipriv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rtl_pcidev
	movl	(%rbx), %esi
	leal	16(%rsi), %ecx
	addl	$19, %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	andl	$-4, %esi
	movl	(%rax), %edi
	leaq	-12(%rbp), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtl_pci_get_linkcontrol_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_pci_get_linkcontrol_field
_rtl_pci_get_linkcontrol_field:         ; @rtl_pci_get_linkcontrol_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_rtl_pcipriv
	mov	x19, x0
	bl	_rtl_pcidev
	ldr	w8, [x19]
	add	w9, w8, #16
	add	w8, w8, #19
	cmp	w9, #0
	csel	w8, w8, w9, lt
	and	w1, w8, #0xfffffffc
	ldr	w0, [x0]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtl_pci_get_linkcontrol_field
.subsections_via_symbols
