	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_afu_info
_read_afu_info:                         ## @read_afu_info
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	_OCXL_CFG_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	imulq	(%rax), %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movslq	(%rsi), %r13
	movl	%edx, %edi
	movl	$31, %esi
	callq	_EXTRACT_BIT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_OCXL_DVSEC_AFU_INFO_OFF@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_pci_write_config_dword
	movq	(%r14), %rsi
	addq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	movl	$31, %esi
	callq	_EXTRACT_BIT
	testq	%rax, %rax
	movq	_jiffies@GOTPCREL(%rip), %r14
	je	LBB0_5
LBB0_3:
	movq	_OCXL_DVSEC_AFU_INFO_DATA@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_pci_read_config_dword
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	_OCXL_DVSEC_AFU_INFO_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	movl	$31, %esi
	callq	_EXTRACT_BIT
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_OCXL_CFG_TIMEOUT,8,3           ## @OCXL_CFG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid offset in AFU info DVSEC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OCXL_DVSEC_AFU_INFO_OFF,8,3    ## @OCXL_DVSEC_AFU_INFO_OFF
L_.str.1:                               ## @.str.1
	.asciz	"Timeout while reading AFU info DVSEC (offset=%d)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_OCXL_DVSEC_AFU_INFO_DATA,8,3   ## @OCXL_DVSEC_AFU_INFO_DATA
	.no_dead_strip	_read_afu_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_afu_info
_read_afu_info:                         ; @read_afu_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	x22, [x23]
Lloh4:
	ldr	x26, [x8]
Lloh5:
	adrp	x8, _OCXL_CFG_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OCXL_CFG_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	x27, [x8]
	ldrsw	x24, [x1]
	mov	x0, x2
	mov	w1, #31
	bl	_EXTRACT_BIT
	cbz	x0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
Lloh12:
	adrp	x25, _OCXL_DVSEC_AFU_INFO_OFF@GOTPAGE
Lloh13:
	ldr	x25, [x25, _OCXL_DVSEC_AFU_INFO_OFF@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x19
	mov	x2, x21
	bl	_pci_write_config_dword
	ldr	x8, [x25]
	add	x1, x8, x24
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #12]
	mov	w1, #31
	bl	_EXTRACT_BIT
	cbnz	x0, LBB0_7
; %bb.4:
	madd	x22, x27, x26, x22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_after_eq
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	ldr	x8, [x25]
	add	x1, x8, x24
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #12]
	mov	w1, #31
	bl	_EXTRACT_BIT
	cbz	x0, LBB0_5
LBB0_7:
Lloh14:
	adrp	x8, _OCXL_DVSEC_AFU_INFO_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OCXL_DVSEC_AFU_INFO_DATA@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	x0, x19
	mov	x2, x20
	bl	_pci_read_config_dword
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_OCXL_CFG_TIMEOUT,8,3           ; @OCXL_CFG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid offset in AFU info DVSEC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OCXL_DVSEC_AFU_INFO_OFF,8,3    ; @OCXL_DVSEC_AFU_INFO_OFF
l_.str.1:                               ; @.str.1
	.asciz	"Timeout while reading AFU info DVSEC (offset=%d)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_OCXL_DVSEC_AFU_INFO_DATA,8,3   ; @OCXL_DVSEC_AFU_INFO_DATA
	.no_dead_strip	_read_afu_info
.subsections_via_symbols
