	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_process_capabilities
_ibmvmc_process_capabilities:           ## @ibmvmc_process_capabilities
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rsi), %edi
	callq	_be16_to_cpu
	movq	_IBMVMC_PROTOCOL_VERSION@GOTPCREL(%rip), %r15
	xorl	(%r15), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jae	LBB0_1
## %bb.2:
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ibmvmc_max_mtu@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_min_t
	movq	_ibmvmc@GOTPCREL(%rip), %r13
	movq	%rax, 16(%r13)
	movq	_u16@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ibmvmc_max_buf_pool_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%rbx), %edi
	callq	_be16_to_cpu
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_min_t
	movq	%rax, 8(%r13)
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ibmvmc_max_hmcs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_min_t
	leaq	-1(%rax), %r8
	movq	%r8, (%r13)
	movq	_ibmvmc_state_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	(%r14), %edi
	movq	8(%r13), %rcx
	movq	16(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_1:
	movl	(%r14), %r14d
	movl	12(%rbx), %edi
	callq	_be16_to_cpu
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_ibmvmc_state_failed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ibmvmc@GOTPCREL(%rip), %rcx
	movl	%eax, 24(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVMC_PROTOCOL_VERSION,4,2    ## @IBMVMC_PROTOCOL_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init failed, incompatible versions 0x%x 0x%x\n"

	.comm	_ibmvmc_state_failed,4,2        ## @ibmvmc_state_failed
	.comm	_ibmvmc,32,3                    ## @ibmvmc
	.comm	_u32,4,2                        ## @u32
	.comm	_ibmvmc_max_mtu,4,2             ## @ibmvmc_max_mtu
	.comm	_u16,4,2                        ## @u16
	.comm	_ibmvmc_max_buf_pool_size,4,2   ## @ibmvmc_max_buf_pool_size
	.comm	_u8,4,2                         ## @u8
	.comm	_ibmvmc_max_hmcs,4,2            ## @ibmvmc_max_hmcs
	.comm	_ibmvmc_state_ready,4,2         ## @ibmvmc_state_ready
L_.str.1:                               ## @.str.1
	.asciz	"Capabilities: mtu=0x%x, pool_size=0x%x, max_hmc=0x%x\n"

	.no_dead_strip	_ibmvmc_process_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_process_capabilities
_ibmvmc_process_capabilities:           ; @ibmvmc_process_capabilities
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #12]
	bl	_be16_to_cpu
Lloh0:
	adrp	x21, _IBMVMC_PROTOCOL_VERSION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IBMVMC_PROTOCOL_VERSION@GOTPAGEOFF]
	ldr	w8, [x21]
	eor	w8, w8, w0
	cmp	w8, #256
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _u32@GOTPAGE
Lloh3:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x8, _ibmvmc_max_mtu@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ibmvmc_max_mtu@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_min_t
Lloh8:
	adrp	x23, _ibmvmc@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ibmvmc@GOTPAGEOFF]
Lloh10:
	adrp	x8, _u16@GOTPAGE
Lloh11:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
	str	x0, [x23, #16]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x8, _ibmvmc_max_buf_pool_size@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ibmvmc_max_buf_pool_size@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	ldr	w0, [x20, #4]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_min_t
Lloh16:
	adrp	x8, _u8@GOTPAGE
Lloh17:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
	str	x0, [x23, #8]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ibmvmc_max_hmcs@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ibmvmc_max_hmcs@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20]
	bl	_min_t
	sub	x4, x0, #1
	str	x4, [x23]
Lloh22:
	adrp	x8, _ibmvmc_state_ready@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ibmvmc_state_ready@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x23, #24]
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x3, x2, [x23, #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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_info
LBB0_2:
	ldr	w19, [x19]
	ldr	w0, [x20, #12]
	bl	_be16_to_cpu
	mov	x2, x0
	ldr	w3, [x21]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _ibmvmc_state_failed@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ibmvmc_state_failed@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _ibmvmc@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ibmvmc@GOTPAGEOFF]
Lloh34:
	str	w8, [x9, #24]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVMC_PROTOCOL_VERSION,4,2    ; @IBMVMC_PROTOCOL_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init failed, incompatible versions 0x%x 0x%x\n"

	.comm	_ibmvmc_state_failed,4,2        ; @ibmvmc_state_failed
	.comm	_ibmvmc,32,3                    ; @ibmvmc
	.comm	_u32,4,2                        ; @u32
	.comm	_ibmvmc_max_mtu,4,2             ; @ibmvmc_max_mtu
	.comm	_u16,4,2                        ; @u16
	.comm	_ibmvmc_max_buf_pool_size,4,2   ; @ibmvmc_max_buf_pool_size
	.comm	_u8,4,2                         ; @u8
	.comm	_ibmvmc_max_hmcs,4,2            ; @ibmvmc_max_hmcs
	.comm	_ibmvmc_state_ready,4,2         ; @ibmvmc_state_ready
l_.str.1:                               ; @.str.1
	.asciz	"Capabilities: mtu=0x%x, pool_size=0x%x, max_hmc=0x%x\n"

	.no_dead_strip	_ibmvmc_process_capabilities
.subsections_via_symbols
