	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_wr_phys
_eeprom_wr_phys:                        ## @eeprom_wr_phys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movl	%edx, -12(%rbp)
	movl	4(%rdi), %esi
	movq	_EEPROMPFSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_eeprom_ptov
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	-12(%rbp), %rcx
	movl	%eax, %esi
	movl	$4, %edx
	callq	_pci_write_vpd
LBB0_2:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROMPFSIZE,4,2               ## @EEPROMPFSIZE
	.no_dead_strip	_eeprom_wr_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_wr_phys
_eeprom_wr_phys:                        ; @eeprom_wr_phys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x19, x0
	str	w2, [sp, #12]
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x9, _EEPROMPFSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EEPROMPFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_eeprom_ptov
	mov	x1, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	add	x3, sp, #12
	mov	w2, #4
	bl	_pci_write_vpd
	mov	x1, x0
LBB0_2:
	cmp	w1, #0
	csel	w0, w1, wzr, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROMPFSIZE,4,2               ; @EEPROMPFSIZE
	.no_dead_strip	_eeprom_wr_phys
.subsections_via_symbols
