	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_validate_hmc_session
_ibmvmc_validate_hmc_session:           ## @ibmvmc_validate_hmc_session
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rsi), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.1:
	movzbl	(%rsi), %edx
	movq	_ibmvmc@GOTPCREL(%rip), %rsi
	cmpb	(%rsi), %dl
	ja	LBB0_4
## %bb.2:
	movq	_hmcs@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi,%rdx,4), %edx
	cmpl	%ecx, %edx
	je	LBB0_5
## %bb.3:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ibmvmc,1,0                     ## @ibmvmc
	.comm	_hmcs,8,3                       ## @hmcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Drop, bad session: expected 0x%x, recv 0x%x\n"

	.no_dead_strip	_ibmvmc_validate_hmc_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_validate_hmc_session
_ibmvmc_validate_hmc_session:           ; @ibmvmc_validate_hmc_session
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w3, [x1, #4]
	cbz	w3, LBB0_3
; %bb.1:
	ldrb	w8, [x1]
Lloh0:
	adrp	x9, _ibmvmc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ibmvmc@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.hi	LBB0_5
; %bb.2:
Lloh2:
	adrp	x9, _hmcs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hmcs@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
	cmp	w2, w3
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x0]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_5:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ibmvmc,1,0                     ; @ibmvmc
	.comm	_hmcs,8,3                       ; @hmcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Drop, bad session: expected 0x%x, recv 0x%x\n"

	.no_dead_strip	_ibmvmc_validate_hmc_session
.subsections_via_symbols
