	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_read_spd_byte
_i5100_read_spd_byte:                   ## @i5100_read_spd_byte
	.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	%r8, %r12
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movl	(%r14), %edi
	movq	_I5100_SPDDATA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-44(%rbp), %edi
	callq	_i5100_spddata_busy
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_I5100_SPDCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	(%r13,%rbx,4), %edx
	movl	$10, %edi
	movl	$1, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_i5100_spdcmd_create
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_write_config_dword
	movl	$100, %edi
	callq	_udelay
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-44(%rbp), %edi
	callq	_i5100_spddata_busy
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_udelay
	movl	(%r14), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_pci_read_config_word
	movl	-44(%rbp), %edi
	callq	_i5100_spddata_busy
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_i5100_spddata_rdo
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_i5100_spddata_sbe
	testq	%rax, %rax
	movl	$-1, %ecx
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_i5100_spddata_data
	movl	%eax, (%r12)
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_5:
	movl	$-1, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I5100_SPDDATA,4,2              ## @I5100_SPDDATA
	.comm	_I5100_SPDCMD,4,2               ## @I5100_SPDCMD
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_i5100_read_spd_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_read_spd_byte
_i5100_read_spd_byte:                   ; @i5100_read_spd_byte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x25, [x0]
	ldr	w0, [x25]
Lloh0:
	adrp	x26, _I5100_SPDDATA@GOTPAGE
Lloh1:
	ldr	x26, [x26, _I5100_SPDDATA@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w0, [sp, #12]
	bl	_i5100_spddata_busy
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	ldr	w23, [x25]
Lloh2:
	adrp	x8, _I5100_SPDCMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I5100_SPDCMD@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	add	w2, w21, w22, lsl #2
	mov	w0, #10
	mov	w1, #1
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	bl	_i5100_spdcmd_create
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_pci_write_config_dword
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_udelay
	ldr	w0, [x25]
	ldr	w1, [x26]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w0, [sp, #12]
	bl	_i5100_spddata_busy
	cbnz	x0, LBB0_4
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_i5100_spddata_rdo
	cbz	w0, LBB0_1
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_i5100_spddata_sbe
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	w0, [sp, #12]
	bl	_i5100_spddata_data
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I5100_SPDDATA,4,2              ; @I5100_SPDDATA
	.comm	_I5100_SPDCMD,4,2               ; @I5100_SPDCMD
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_i5100_read_spd_byte
.subsections_via_symbols
