	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blkif_recover
_blkif_recover:                         ## @blkif_recover
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movq	___GFP_REPEAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rdi, %r12
	movq	___GFP_HIGH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	24(%r12), %rbx
	movq	24(%r12), %rsi
	movq	%rax, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_BLK_RING_SIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ecx
	movq	24(%r12), %rax
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:
	leaq	8(%rax), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rsi
	movl	%esi, (%rdx)
	movslq	(%rdi), %rcx
	addq	$32, %rdx
	cmpq	%rcx, %rsi
	jl	LBB0_4
LBB0_5:
	movl	16(%r12), %esi
	movl	%esi, 32(%r12)
	movslq	%ecx, %rcx
	shlq	$5, %rcx
	movl	$268435455, -24(%rcx,%rax)      ## imm = 0xFFFFFFF
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.6:
	leaq	16(%r12), %rdi
	xorl	%edx, %edx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	shlq	$5, %rcx
	movups	(%rbx), %xmm0
	movups	%xmm0, 8(%rax,%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	incl	%esi
	movl	%esi, (%rdi)
	movq	_BLK_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rdx, %r14
	shlq	$5, %r14
	cmpq	$0, (%r13,%r14)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r13), %r15
	callq	_RING_GET_REQUEST
	movq	%rax, %rbx
	movups	8(%r13,%r14), %xmm0
	movups	%xmm0, (%rax)
	movq	%r12, %rdi
	callq	_get_id_from_freelist
	movl	%eax, (%rbx)
	movslq	%eax, %rdi
	shlq	$5, %rdi
	addq	24(%r12), %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_memcpy
	cmpl	$0, 4(%rbx)
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rax), %r14d
	movslq	(%rbx), %rax
	shlq	$5, %rax
	movq	24(%rcx,%rax), %rax
	movl	(%rax,%r13,4), %edi
	callq	_pfn_to_mfn
	movl	%eax, %r15d
	movq	24(%r12), %rax
	movslq	(%rbx), %rcx
	shlq	$5, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_rq_data_dir
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_gnttab_grant_foreign_access_ref
	incq	%r13
	movslq	4(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_10
	jmp	LBB0_11
LBB0_13:
	movq	%r13, %rdi
	callq	_kfree
	movq	8(%r12), %rdi
	movq	_XenbusStateConnected@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xenbus_switch_state
	movq	_blkif_io_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_BLKIF_STATE_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_flush_requests
	movq	%r12, %rdi
	callq	_kick_pending_request_queues
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	___GFP_REPEAT,4,2               ## @__GFP_REPEAT
	.comm	___GFP_HIGH,4,2                 ## @__GFP_HIGH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BLK_RING_SIZE,4,2              ## @BLK_RING_SIZE
	.comm	_XenbusStateConnected,4,2       ## @XenbusStateConnected
	.comm	_blkif_io_lock,4,2              ## @blkif_io_lock
	.comm	_BLKIF_STATE_CONNECTED,4,2      ## @BLKIF_STATE_CONNECTED
	.no_dead_strip	_blkif_recover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blkif_recover
_blkif_recover:                         ; @blkif_recover
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_REPEAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_REPEAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, ___GFP_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___GFP_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	mov	x21, x19
	ldr	x1, [x21, #24]!
	mov	w2, #8
	bl	_memcpy
	mov	x0, x21
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh9:
	adrp	x27, _BLK_RING_SIZE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _BLK_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x27]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x21]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x9, #0
	add	x10, x8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, #1
	str	w9, [x10], #32
	ldrsw	x11, [x27]
	cmp	x9, x11
	b.lt	LBB0_3
; %bb.4:
	mov	x9, x11
LBB0_5:
	mov	x22, x19
	ldr	w1, [x22, #16]!
	str	w1, [x22, #16]
	sxtw	x9, w9
	add	x8, x8, x9, lsl #5
	mov	w9, #268435455
	stur	w9, [x8, #-24]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x28, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #5
	ldr	q0, [x23]
	stur	q0, [x8, #8]
	ldr	w8, [x22]
	add	w1, w8, #1
	str	w1, [x22]
	ldr	w8, [x27]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x24, x20, x28, lsl #5
	ldr	x9, [x24]
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_RING_GET_REQUEST
	mov	x23, x0
	ldur	q0, [x24, #8]
	str	q0, [x0]
	mov	x0, x19
	bl	_get_id_from_freelist
	str	w0, [x23]
	ldr	x8, [x19, #24]
	lsl	x9, x0, #32
	add	x0, x8, x9, asr #27
	mov	x1, x24
	mov	w2, #32
	bl	_memcpy
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, #0
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	lsl	x9, x21, #2
	ldr	w24, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	w25, [x8]
	ldr	x8, [x19, #24]
	ldrsw	x10, [x23]
	add	x8, x8, x10, lsl #5
	ldr	x8, [x8, #24]
	ldr	w0, [x8, x9]
	bl	_pfn_to_mfn
	mov	x26, x0
	ldr	x8, [x19, #24]
	ldrsw	x9, [x23]
	lsl	x9, x9, #5
	ldr	x0, [x8, x9]
	bl	_rq_data_dir
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_gnttab_grant_foreign_access_ref
	add	x21, x21, #1
	ldrsw	x8, [x23, #4]
	cmp	x21, x8
	b.lt	LBB0_12
	b	LBB0_7
LBB0_13:
	mov	x0, x20
	bl	_kfree
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x8, _XenbusStateConnected@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XenbusStateConnected@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_xenbus_switch_state
Lloh14:
	adrp	x20, _blkif_io_lock@GOTPAGE
Lloh15:
	ldr	x20, [x20, _blkif_io_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irq
Lloh16:
	adrp	x8, _BLKIF_STATE_CONNECTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BLKIF_STATE_CONNECTED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_flush_requests
	mov	x0, x19
	bl	_kick_pending_request_queues
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	___GFP_REPEAT,4,2               ; @__GFP_REPEAT
	.comm	___GFP_HIGH,4,2                 ; @__GFP_HIGH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BLK_RING_SIZE,4,2              ; @BLK_RING_SIZE
	.comm	_XenbusStateConnected,4,2       ; @XenbusStateConnected
	.comm	_blkif_io_lock,4,2              ; @blkif_io_lock
	.comm	_BLKIF_STATE_CONNECTED,4,2      ; @BLKIF_STATE_CONNECTED
	.no_dead_strip	_blkif_recover
.subsections_via_symbols
