	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_read_pci_cfg_word        ## -- Begin function fm10k_read_pci_cfg_word
	.p2align	4, 0x90
_fm10k_read_pci_cfg_word:               ## @fm10k_read_pci_cfg_word
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	$0, -28(%rbp)
	movl	(%rdi), %edi
	callq	_FM10K_REMOVED
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %edi
	leaq	-28(%rbp), %rdx
	movl	%r14d, %esi
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_fm10k_write_flush
	movl	-28(%rbp), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_read_pci_cfg_word        ; -- Begin function fm10k_read_pci_cfg_word
	.p2align	2
_fm10k_read_pci_cfg_word:               ; @fm10k_read_pci_cfg_word
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	str	wzr, [sp, #12]
	ldr	w0, [x0]
	bl	_FM10K_REMOVED
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_4
LBB0_2:
	ldr	w0, [x21]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_word
	ldr	w0, [sp, #12]
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_fm10k_write_flush
	ldr	w0, [sp, #12]
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
