	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_count_hmc_buffers
_ibmvmc_count_hmc_buffers:              ## @ibmvmc_count_hmc_buffers
	.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	_ibmvmc@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jae	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.3:
	movq	%rdi, %r15
	movl	$0, (%r13)
	movl	$0, (%r14)
	movq	_hmcs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	shlq	$4, %r15
	movq	8(%rdi,%r15), %rbx
	addq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_ibmvmc_max_buf_pool_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	addq	$8, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rbx
	decq	%rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	(%r13)
	cmpq	$0, -8(%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	(%r14)
	jmp	LBB0_8
LBB0_9:
	addq	(%r12), %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ibmvmc,8,3                     ## @ibmvmc
	.comm	_hmcs,8,3                       ## @hmcs
	.comm	_ibmvmc_max_buf_pool_size,8,3   ## @ibmvmc_max_buf_pool_size
	.no_dead_strip	_ibmvmc_count_hmc_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_count_hmc_buffers
_ibmvmc_count_hmc_buffers:              ; @ibmvmc_count_hmc_buffers
	.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
Lloh0:
	adrp	x8, _ibmvmc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ibmvmc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	ccmp	x1, #0, #4, hs
	ccmp	x2, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [x1]
	str	wzr, [x2]
Lloh3:
	adrp	x22, _hmcs@GOTPAGE
Lloh4:
	ldr	x22, [x22, _hmcs@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x0, lsl #4
	ldr	x23, [x0, #8]
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _ibmvmc_max_buf_pool_size@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ibmvmc_max_buf_pool_size@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
	add	x9, x23, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x21]
	add	w10, w10, #1
	str	w10, [x21]
	ldur	x10, [x9, #-8]
	cbz	x10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x20]
	add	w10, w10, #1
	str	w10, [x20]
	b	LBB0_4
LBB0_8:
	ldr	x8, [x22]
	add	x0, x8, x19, lsl #4
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ibmvmc,8,3                     ; @ibmvmc
	.comm	_hmcs,8,3                       ; @hmcs
	.comm	_ibmvmc_max_buf_pool_size,8,3   ; @ibmvmc_max_buf_pool_size
	.no_dead_strip	_ibmvmc_count_hmc_buffers
.subsections_via_symbols
