	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_vpd_rsp
_handle_vpd_rsp:                        ## @handle_vpd_rsp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rdi
	movq	24(%rsi), %r14
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movl	16(%rax), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strnstr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	2(%rax), %rdx
	movq	16(%rbx), %rsi
	movslq	(%rsi), %rcx
	addq	8(%rsi), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_12
## %bb.5:
	movsbq	2(%rax), %rdx
	leaq	(%rax,%rdx), %rsi
	addq	$3, %rsi
	cmpq	%rcx, %rsi
	jae	LBB0_7
## %bb.6:
	addq	$3, %rax
	movq	(%rbx), %rdi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_strncpy
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_info
LBB0_9:
	movq	(%rbx), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movl	$3, %edx
	xorl	%eax, %eax
	callq	_strncpy
LBB0_11:
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error retrieving VPD from device, rc=%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"RM"

L_.str.2:                               ## @.str.2
	.asciz	"Warning - No FW level has been provided in the VPD buffer by the VIOS Server\n"

L_.str.3:                               ## @.str.3
	.asciz	"Length of FW substr extrapolated VDP buff\n"

L_.str.4:                               ## @.str.4
	.asciz	"FW substr extrapolated VPD buff\n"

L_.str.5:                               ## @.str.5
	.asciz	"N/A"

	.no_dead_strip	_handle_vpd_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_vpd_rsp
_handle_vpd_rsp:                        ; @handle_vpd_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	ldr	x20, [x1, #24]
	ldr	x0, [x1]
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #16]
	ldr	w2, [x8]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_unmap_single
	ldr	w2, [x21]
	cbz	w2, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strnstr
	cbz	x0, LBB0_6
; %bb.3:
	add	x8, x0, #2
	ldr	x9, [x19, #16]
	ldr	x10, [x9, #8]
	ldrsw	x9, [x9]
	add	x10, x10, x9
	cmp	x8, x10
	b.hs	LBB0_7
; %bb.4:
	ldrsb	x9, [x0, #2]
	add	x8, x0, #3
	add	x11, x8, x9
	cmp	x11, x10
	b.hs	LBB0_8
; %bb.5:
	ldr	x0, [x19]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x8, x9, [sp]
	bl	_strncpy
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_dev_info
LBB0_10:
	ldr	x0, [x19]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	w8, #3
Lloh13:
	adrp	x9, l_.str.5@PAGE
Lloh14:
	add	x9, x9, l_.str.5@PAGEOFF
	stp	x9, x8, [sp]
	bl	_strncpy
LBB0_12:
	add	x0, x19, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error retrieving VPD from device, rc=%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"RM"

l_.str.2:                               ; @.str.2
	.asciz	"Warning - No FW level has been provided in the VPD buffer by the VIOS Server\n"

l_.str.3:                               ; @.str.3
	.asciz	"Length of FW substr extrapolated VDP buff\n"

l_.str.4:                               ; @.str.4
	.asciz	"FW substr extrapolated VPD buff\n"

l_.str.5:                               ; @.str.5
	.asciz	"N/A"

	.no_dead_strip	_handle_vpd_rsp
.subsections_via_symbols
