	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_get_free_hmc
_ibmvmc_get_free_hmc:                   ## @ibmvmc_get_free_hmc
	.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
	movl	$16, %ebx
	movq	_hmcs@GOTPCREL(%rip), %r15
	movq	_ibmhmc_state_free@GOTPCREL(%rip), %r12
	movq	_ibmvmc@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rdi
	movq	-16(%rdi,%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	incq	%r13
	addq	$24, %rbx
	cmpq	(%r14), %r13
	jbe	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	leaq	(%rdi,%rbx), %rax
	movq	%r13, -8(%rdi,%rbx)
	movq	_ibmhmc_state_initial@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -16(%rdi,%rbx)
	movq	%rax, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rax
	addq	%rbx, %rax
	addq	$-16, %rax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ibmvmc,8,3                     ## @ibmvmc
	.comm	_hmcs,8,3                       ## @hmcs
	.comm	_ibmhmc_state_free,8,3          ## @ibmhmc_state_free
	.comm	_ibmhmc_state_initial,8,3       ## @ibmhmc_state_initial
	.no_dead_strip	_ibmvmc_get_free_hmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_get_free_hmc
_ibmvmc_get_free_hmc:                   ; @ibmvmc_get_free_hmc
	.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	x19, #0
	mov	x21, #0
Lloh0:
	adrp	x20, _hmcs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hmcs@GOTPAGEOFF]
Lloh2:
	adrp	x22, _ibmhmc_state_free@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ibmhmc_state_free@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ibmvmc@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ibmvmc@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x19
	add	x0, x8, #16
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldr	x9, [x8, x19]
	ldr	x10, [x22]
	add	x8, x8, x19
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x8, #16
	bl	_spin_unlock_irqrestore
	add	x21, x21, #1
	ldr	x8, [x23]
	add	x19, x19, #24
	cmp	x21, x8
	b.ls	LBB0_1
; %bb.3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	str	x21, [x8, #8]
Lloh6:
	adrp	x9, _ibmhmc_state_initial@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ibmhmc_state_initial@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [x8]
	add	x0, x8, #16
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20]
	add	x0, x8, x19
LBB0_5:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ibmvmc,8,3                     ; @ibmvmc
	.comm	_hmcs,8,3                       ; @hmcs
	.comm	_ibmhmc_state_free,8,3          ; @ibmhmc_state_free
	.comm	_ibmhmc_state_initial,8,3       ; @ibmhmc_state_initial
	.no_dead_strip	_ibmvmc_get_free_hmc
.subsections_via_symbols
