	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iova_rcache_get
___iova_rcache_get:                     ## @__iova_rcache_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_raw_cpu_ptr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %edi
	callq	_iova_magazine_empty
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	8(%rbx), %edi
	callq	_iova_magazine_empty
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %edi
	callq	_iova_magazine_free
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%r15)
	movl	-4(%rcx,%rax,4), %eax
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_2:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_swap
LBB0_6:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_iova_magazine_pop
	movq	%rax, %r14
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___iova_rcache_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iova_rcache_get
___iova_rcache_get:                     ; @__iova_rcache_get
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #24]
	bl	_raw_cpu_ptr
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #4]
	bl	_iova_magazine_empty
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_iova_magazine_empty
	cbz	w0, LBB0_4
; %bb.2:
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_iova_magazine_free
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	sub	x9, x9, #1
	str	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_spin_unlock
	b	LBB0_5
LBB0_4:
	ldp	w1, w0, [x19, #4]
	bl	_swap
LBB0_5:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_iova_magazine_pop
	mov	x20, x0
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
LBB0_7:
	mov	x0, x22
	bl	_spin_unlock
	mov	x20, #0
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___iova_rcache_get
.subsections_via_symbols
