	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_vpd_write
_skge_vpd_write:                        ## @skge_vpd_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movl	%edx, -44(%rbp)
	movslq	%esi, %rbx
	movq	_PCI_VPD_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	%ecx, %edx
	callq	_pci_write_config_dword
	movq	_PCI_VPD_ADDR@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	_PCI_VPD_ADDR_F@GOTPCREL(%rip), %r13
	orl	(%r13), %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_pci_write_config_word
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VPD_DATA,8,3               ## @PCI_VPD_DATA
	.comm	_PCI_VPD_ADDR,8,3               ## @PCI_VPD_ADDR
	.comm	_PCI_VPD_ADDR_F,4,2             ## @PCI_VPD_ADDR_F
	.no_dead_strip	_skge_vpd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_vpd_write
_skge_vpd_write:                        ; @skge_vpd_write
	.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
	mov	x20, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	str	w2, [sp, #12]
	sxtw	x21, w1
Lloh0:
	adrp	x8, _PCI_VPD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VPD_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x2, x3
	bl	_pci_write_config_dword
Lloh3:
	adrp	x22, _PCI_VPD_ADDR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCI_VPD_ADDR@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x21
Lloh5:
	adrp	x23, _PCI_VPD_ADDR_F@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PCI_VPD_ADDR_F@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_pci_write_config_word
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x8, x21
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.2:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VPD_DATA,8,3               ; @PCI_VPD_DATA
	.comm	_PCI_VPD_ADDR,8,3               ; @PCI_VPD_ADDR
	.comm	_PCI_VPD_ADDR_F,4,2             ; @PCI_VPD_ADDR_F
	.no_dead_strip	_skge_vpd_write
.subsections_via_symbols
