	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_seeprom_read                ## -- Begin function t1_seeprom_read
	.p2align	4, 0x90
_t1_seeprom_read:                       ## @t1_seeprom_read
	.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
	movl	%esi, %ecx
	testb	$3, %cl
	jne	LBB0_2
## %bb.1:
	movq	_EEPROMSIZE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jle	LBB0_2
## %bb.4:
	movq	%rdi, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_EEPROM_MAX_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rdi), %edi
	movq	_A_PCICFG_VPD_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	callq	_pci_write_config_word
	decl	%ebx
	leaq	-52(%rbp), %r12
	movq	_F_VPD_OP_FLAG@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_udelay
	movl	(%r13), %edi
	movl	(%r14), %esi
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movl	(%r15), %eax
	subl	$1, %ebx
	setb	%cl
	andl	-52(%rbp), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	%cl, %cl
	je	LBB0_5
LBB0_7:
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	(%r13), %edi
	movq	_A_PCICFG_VPD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-48(%rbp), %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_MAX_POLL,4,2            ## @EEPROM_MAX_POLL
	.comm	_EEPROMSIZE,4,2                 ## @EEPROMSIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_A_PCICFG_VPD_ADDR,4,2          ## @A_PCICFG_VPD_ADDR
	.comm	_F_VPD_OP_FLAG,4,2              ## @F_VPD_OP_FLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: reading EEPROM address 0x%x failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_A_PCICFG_VPD_DATA,4,2          ## @A_PCICFG_VPD_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_seeprom_read                ; -- Begin function t1_seeprom_read
	.p2align	2
_t1_seeprom_read:                       ; @t1_seeprom_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	tst	w1, #0x3
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _EEPROMSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROMSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_6
; %bb.2:
	mov	x19, x2
	mov	x21, x0
Lloh3:
	adrp	x8, _EEPROM_MAX_POLL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_MAX_POLL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	w0, [x0]
Lloh6:
	adrp	x22, _A_PCICFG_VPD_ADDR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _A_PCICFG_VPD_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_pci_write_config_word
	sub	w23, w23, #1
Lloh8:
	adrp	x24, _F_VPD_OP_FLAG@GOTPAGE
Lloh9:
	ldr	x24, [x24, _F_VPD_OP_FLAG@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_udelay
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w23, #0, #4, eq
	sub	w23, w23, #1
	b.ne	LBB0_3
; %bb.4:
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _A_PCICFG_VPD_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _A_PCICFG_VPD_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w1, [x21, #4]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_err
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_MAX_POLL,4,2            ; @EEPROM_MAX_POLL
	.comm	_EEPROMSIZE,4,2                 ; @EEPROMSIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_A_PCICFG_VPD_ADDR,4,2          ; @A_PCICFG_VPD_ADDR
	.comm	_F_VPD_OP_FLAG,4,2              ; @F_VPD_OP_FLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: reading EEPROM address 0x%x failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_A_PCICFG_VPD_DATA,4,2          ; @A_PCICFG_VPD_DATA
.subsections_via_symbols
