	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_seeprom_wp                  ## -- Begin function t4_seeprom_wp
	.p2align	4, 0x90
_t4_seeprom_wp:                         ## @t4_seeprom_wp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	testl	%esi, %esi
	movl	$12, %eax
	cmovel	%esi, %eax
	movl	%eax, -4(%rbp)
	movl	(%rdi), %edi
	movq	_EEPROM_STAT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rcx
	movl	$4, %edx
	callq	_pci_write_vpd
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_STAT_ADDR,4,2           ## @EEPROM_STAT_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_seeprom_wp                  ; -- Begin function t4_seeprom_wp
	.p2align	2
_t4_seeprom_wp:                         ; @t4_seeprom_wp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #12
	cmp	w1, #0
	csel	w8, wzr, w8, eq
	stur	w8, [x29, #-4]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _EEPROM_STAT_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_STAT_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x3, x29, #4
	mov	w2, #4
	bl	_pci_write_vpd
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_STAT_ADDR,4,2           ; @EEPROM_STAT_ADDR
.subsections_via_symbols
