	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p9_idpool_get                  ## -- Begin function p9_idpool_get
	.p2align	4, 0x90
_p9_idpool_get:                         ## @p9_idpool_get
	.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	%rdi, %r12
	movl	$0, -44(%rbp)
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movq	_EAGAIN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_idr_pre_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-44(%rbp), %rdx
	callq	_idr_get_new
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r15), %eax
	addl	%ebx, %eax
	je	LBB0_1
## %bb.4:
	movl	$-1, %eax
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movq	_P9_DEBUG_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rcx
	callq	_P9_DPRINTK
	movl	-44(%rbp), %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_P9_DEBUG_MUX,4,2               ## @P9_DEBUG_MUX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" id %d pool %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p9_idpool_get                  ; -- Begin function p9_idpool_get
	.p2align	2
_p9_idpool_get:                         ; @p9_idpool_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	str	wzr, [sp, #12]
	add	x20, x0, #4
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_idr_pre_get
	cbz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_idr_get_new
	mov	x21, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w8, [x23]
	cmn	w21, w8
	b.eq	LBB0_1
; %bb.3:
	cbz	w21, LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _P9_DEBUG_MUX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _P9_DEBUG_MUX@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_P9_DPRINTK
	ldr	w0, [sp, #12]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_P9_DEBUG_MUX,4,2               ; @P9_DEBUG_MUX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" id %d pool %p\n"

.subsections_via_symbols
