	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function id_read_eeprom
_id_read_eeprom:                        ## @id_read_eeprom
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_EEPROM_READ@GOTPCREL(%rip), %rax
	movslq	%edi, %rdi
	addq	(%rax), %rdi
	movq	_id_port@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_outb
	movl	$4, %edi
	callq	_mdelay
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	leal	(%rax,%rbx,2), %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	addl	%eax, %eax
	leal	(%rax,%rbx,4), %r12d
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$1, %ebx
	orl	%r12d, %ebx
	movq	_el3_debug@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_pr_debug
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_READ,8,3                ## @EEPROM_READ
	.comm	_id_port,4,2                    ## @id_port
	.comm	_el3_debug,4,2                  ## @el3_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  3c509 EEPROM word %d %#4.4x.\n"

	.no_dead_strip	_id_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function id_read_eeprom
_id_read_eeprom:                        ; @id_read_eeprom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _EEPROM_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_READ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw
Lloh3:
	adrp	x22, _id_port@GOTPAGE
Lloh4:
	ldr	x22, [x22, _id_port@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_outb
	mov	w0, #4
	bl	_mdelay
	ldr	w0, [x22]
	bl	_inb
	mov	x20, x0
	ldr	w0, [x22]
	bl	_inb
	mov	x21, x0
	bfi	w21, w20, #1, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w20, w0, #1, #1
	bfi	w20, w21, #2, #2
	ldr	w0, [x22]
	bl	_inb
	bfxil	w20, w0, #0, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w21, w0, #1, #1
	bfi	w21, w20, #2, #4
	ldr	w0, [x22]
	bl	_inb
	bfxil	w21, w0, #0, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w20, w0, #1, #1
	bfi	w20, w21, #2, #30
	ldr	w0, [x22]
	bl	_inb
	bfxil	w20, w0, #0, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w21, w0, #1, #1
	bfi	w21, w20, #2, #30
	ldr	w0, [x22]
	bl	_inb
	bfxil	w21, w0, #0, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w20, w0, #1, #1
	bfi	w20, w21, #2, #30
	ldr	w0, [x22]
	bl	_inb
	bfxil	w20, w0, #0, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w21, w0, #1, #1
	bfi	w21, w20, #2, #30
	ldr	w0, [x22]
	bl	_inb
	bfxil	w21, w0, #0, #1
	ldr	w0, [x22]
	bl	_inb
	ubfiz	w20, w0, #1, #1
	bfi	w20, w21, #2, #30
	ldr	w0, [x22]
	bl	_inb
	bfxil	w20, w0, #0, #1
Lloh5:
	adrp	x8, _el3_debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _el3_debug@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_pr_debug
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_READ,8,3                ; @EEPROM_READ
	.comm	_id_port,4,2                    ; @id_port
	.comm	_el3_debug,4,2                  ; @el3_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  3c509 EEPROM word %d %#4.4x.\n"

	.no_dead_strip	_id_read_eeprom
.subsections_via_symbols
