	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_process_open_resp
_ibmvmc_process_open_resp:              ## @ibmvmc_process_open_resp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movzbl	(%rdi), %ebx
	movq	_ibmvmc@GOTPCREL(%rip), %r12
	cmpb	(%r12), %bl
	jbe	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmvmc_reset                   ## TAILCALL
LBB0_1:
	movq	8(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_hmcs@GOTPCREL(%rip), %rax
	shlq	$4, %rbx
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmvmc_return_hmc              ## TAILCALL
LBB0_2:
	movq	_hmcs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rdx
	movq	_ibmhmc_state_opening@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.3:
	movl	16(%rdi), %edi
	callq	_be16_to_cpu
	cmpw	2(%r12), %ax
	jae	LBB0_8
## %bb.4:
	movq	(%r15), %rdi
	movzwl	%ax, %esi
	shlq	$2, %rsi
	addq	8(%rdi,%rbx), %rsi
	addq	%rbx, %rdi
	callq	_ibmvmc_free_hmc_buffer
	movq	_ibmhmc_state_ready@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_8:
	movl	(%r14), %edi
	movzwl	%ax, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ibmhmc_state_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ibmvmc,4,1                     ## @ibmvmc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open_resp: failed - status 0x%x\n"

	.comm	_hmcs,8,3                       ## @hmcs
	.comm	_ibmhmc_state_opening,8,3       ## @ibmhmc_state_opening
L_.str.1:                               ## @.str.1
	.asciz	"open_resp: invalid buffer_id = 0x%x\n"

	.comm	_ibmhmc_state_failed,8,3        ## @ibmhmc_state_failed
	.comm	_ibmhmc_state_ready,8,3         ## @ibmhmc_state_ready
L_.str.2:                               ## @.str.2
	.asciz	"open_resp: set hmc state = ready\n"

L_.str.3:                               ## @.str.3
	.asciz	"open_resp: invalid hmc state (0x%x)\n"

	.no_dead_strip	_ibmvmc_process_open_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_process_open_resp
_ibmvmc_process_open_resp:              ; @ibmvmc_process_open_resp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldrb	w21, [x0]
Lloh0:
	adrp	x22, _ibmvmc@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ibmvmc@GOTPAGEOFF]
	ldrb	w8, [x22]
	cmp	w21, w8
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ibmvmc_reset
LBB0_2:
	ldr	x2, [x0, #8]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh4:
	adrp	x8, _hmcs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hmcs@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x0, x8, x21, lsl #4
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ibmvmc_return_hmc
LBB0_4:
Lloh7:
	adrp	x20, _hmcs@GOTPAGE
Lloh8:
	ldr	x20, [x20, _hmcs@GOTPAGEOFF]
	ldr	x8, [x20]
	lsl	x21, x21, #4
	ldr	x2, [x8, x21]
Lloh9:
	adrp	x8, _ibmhmc_state_opening@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ibmhmc_state_opening@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x0, #16]
	bl	_be16_to_cpu
	mov	x2, x0
	ldrh	w8, [x22, #2]
	cmp	w0, w8
	b.hs	LBB0_8
; %bb.6:
	ldr	x8, [x20]
	add	x0, x8, x21
	ldr	x8, [x0, #8]
	add	x1, x8, w2, uxtw #2
	bl	_ibmvmc_free_hmc_buffer
Lloh12:
	adrp	x8, _ibmhmc_state_ready@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ibmhmc_state_ready@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x20]
	str	x8, [x9, x21]
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_dbg
LBB0_7:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_8:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _ibmhmc_state_failed@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ibmhmc_state_failed@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x20]
	str	x8, [x9, x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ibmvmc,4,1                     ; @ibmvmc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open_resp: failed - status 0x%x\n"

	.comm	_hmcs,8,3                       ; @hmcs
	.comm	_ibmhmc_state_opening,8,3       ; @ibmhmc_state_opening
l_.str.1:                               ; @.str.1
	.asciz	"open_resp: invalid buffer_id = 0x%x\n"

	.comm	_ibmhmc_state_failed,8,3        ; @ibmhmc_state_failed
	.comm	_ibmhmc_state_ready,8,3         ; @ibmhmc_state_ready
l_.str.2:                               ; @.str.2
	.asciz	"open_resp: set hmc state = ready\n"

l_.str.3:                               ; @.str.3
	.asciz	"open_resp: invalid hmc state (0x%x)\n"

	.no_dead_strip	_ibmvmc_process_open_resp
.subsections_via_symbols
