	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function talk_to_blkback
_talk_to_blkback:                       ## @talk_to_blkback
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_setup_blkring
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	leaq	-48(%rbp), %r13
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_xenbus_transaction_start
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	4(%r14), %r8d
	movl	-48(%rbp), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rcx
	callq	_xenbus_printf
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	(%r14), %r8d
	movl	-48(%rbp), %edi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rcx
	callq	_xenbus_printf
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	_XEN_IO_PROTO_ABI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-48(%rbp), %edi
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_xenbus_printf
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	callq	_xenbus_transaction_end
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_2
## %bb.14:
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdx
LBB0_15:
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_6
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_6
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %r15
LBB0_6:
	movl	-48(%rbp), %edi
	movl	$1, %esi
	callq	_xenbus_transaction_end
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_blkif_free
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_XenbusStateInitialised@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_xenbus_switch_state
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting transaction"

L_.str.1:                               ## @.str.1
	.asciz	"ring-ref"

L_.str.2:                               ## @.str.2
	.asciz	"%u"

L_.str.3:                               ## @.str.3
	.asciz	"writing ring-ref"

L_.str.4:                               ## @.str.4
	.asciz	"event-channel"

L_.str.5:                               ## @.str.5
	.asciz	"writing event-channel"

L_.str.6:                               ## @.str.6
	.asciz	"protocol"

L_.str.7:                               ## @.str.7
	.asciz	"%s"

	.comm	_XEN_IO_PROTO_ABI_NATIVE,4,2    ## @XEN_IO_PROTO_ABI_NATIVE
L_.str.8:                               ## @.str.8
	.asciz	"writing protocol"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.9:                               ## @.str.9
	.asciz	"completing transaction"

	.comm	_XenbusStateInitialised,4,2     ## @XenbusStateInitialised
	.no_dead_strip	_talk_to_blkback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function talk_to_blkback
_talk_to_blkback:                       ; @talk_to_blkback
	.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, x1
	mov	x20, x0
	bl	_setup_blkring
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh2:
	adrp	x23, l_.str.2@PAGE
Lloh3:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh4:
	adrp	x24, l_.str.4@PAGE
Lloh5:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh6:
	adrp	x28, _XEN_IO_PROTO_ABI_NATIVE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _XEN_IO_PROTO_ABI_NATIVE@GOTPAGEOFF]
Lloh8:
	adrp	x25, l_.str.6@PAGE
Lloh9:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh10:
	adrp	x26, l_.str.7@PAGE
Lloh11:
	add	x26, x26, l_.str.7@PAGEOFF
Lloh12:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_xenbus_transaction_start
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	ldr	w4, [x19, #4]
	ldr	w0, [sp, #8]
	mov	x2, x22
	mov	x3, x23
	bl	_xenbus_printf
	cbnz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	ldr	w4, [x19]
	ldr	w0, [sp, #8]
	mov	x2, x24
	mov	x3, x23
	bl	_xenbus_printf
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	ldr	w4, [x28]
	ldr	w0, [sp, #8]
	mov	x2, x25
	mov	x3, x26
	bl	_xenbus_printf
	cbnz	w0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	mov	w1, #0
	bl	_xenbus_transaction_end
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	cmn	w21, w8
	b.eq	LBB0_2
; %bb.8:
Lloh14:
	adrp	x2, l_.str.9@PAGE
Lloh15:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_14
LBB0_9:
	mov	x21, x0
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
	mov	x21, x0
Lloh18:
	adrp	x22, l_.str.3@PAGE
Lloh19:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x21, x0
Lloh20:
	adrp	x22, l_.str.5@PAGE
Lloh21:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x21, x0
Lloh22:
	adrp	x22, l_.str.8@PAGE
Lloh23:
	add	x22, x22, l_.str.8@PAGEOFF
LBB0_13:
	ldr	w0, [sp, #8]
	mov	w1, #1
	bl	_xenbus_transaction_end
	str	x22, [sp]
Lloh24:
	adrp	x2, l_.str.7@PAGE
Lloh25:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	bl	_xenbus_dev_fatal
	mov	x0, x19
	mov	w1, #0
	bl	_blkif_free
LBB0_15:
	mov	x0, x21
	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
LBB0_16:
Lloh26:
	adrp	x8, _XenbusStateInitialised@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XenbusStateInitialised@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_xenbus_switch_state
	b	LBB0_15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting transaction"

l_.str.1:                               ; @.str.1
	.asciz	"ring-ref"

l_.str.2:                               ; @.str.2
	.asciz	"%u"

l_.str.3:                               ; @.str.3
	.asciz	"writing ring-ref"

l_.str.4:                               ; @.str.4
	.asciz	"event-channel"

l_.str.5:                               ; @.str.5
	.asciz	"writing event-channel"

l_.str.6:                               ; @.str.6
	.asciz	"protocol"

l_.str.7:                               ; @.str.7
	.asciz	"%s"

	.comm	_XEN_IO_PROTO_ABI_NATIVE,4,2    ; @XEN_IO_PROTO_ABI_NATIVE
l_.str.8:                               ; @.str.8
	.asciz	"writing protocol"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.9:                               ; @.str.9
	.asciz	"completing transaction"

	.comm	_XenbusStateInitialised,4,2     ; @XenbusStateInitialised
	.no_dead_strip	_talk_to_blkback
.subsections_via_symbols
