	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_queue_xenstore_keys
_write_queue_xenstore_keys:             ## @write_queue_xenstore_keys
	.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, %r13
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
	addl	$10, %eax
	movslq	%eax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	movq	(%r14), %rcx
	movl	(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_snprintf
LBB0_5:
	movl	16(%r15), %r8d
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rsi
	callq	_xenbus_printf
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %r15
	jmp	LBB0_7
LBB0_9:
	movl	12(%r15), %r8d
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rsi
	callq	_xenbus_printf
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %r15
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %r15
LBB0_3:
	movq	%r12, %rdi
	callq	_kfree
LBB0_8:
	leaq	L_.str.13(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_xenbus_dev_fatal
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%r15), %r8d
	movl	(%r13), %edi
	cmpl	4(%r15), %r8d
	jne	LBB0_14
## %bb.12:
	leaq	L_.str.7(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rsi
	callq	_xenbus_printf
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %r15
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str.9(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rsi
	callq	_xenbus_printf
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %r15
	jmp	LBB0_7
LBB0_16:
	movl	4(%r15), %r8d
	movl	(%r13), %edi
	leaq	L_.str.11(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rsi
	callq	_xenbus_printf
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %r15
	jmp	LBB0_7
LBB0_18:
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory while writing ring references"

L_.str.1:                               ## @.str.1
	.asciz	"%s/queue-%u"

L_.str.2:                               ## @.str.2
	.asciz	"tx-ring-ref"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"rx-ring-ref"

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"event-channel-tx"

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

L_.str.11:                              ## @.str.11
	.asciz	"event-channel-rx"

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

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

	.no_dead_strip	_write_queue_xenstore_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_queue_xenstore_keys
_write_queue_xenstore_keys:             ; @write_queue_xenstore_keys
	.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	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	ldr	x20, [x19]
	cbz	w2, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #10
	sxtw	x24, w8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x3, [x19]
	ldr	w4, [x23]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	bl	_snprintf
LBB0_3:
	ldr	w4, [x23, #16]
	ldr	w0, [x22]
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh7:
	adrp	x3, l_.str.3@PAGE
Lloh8:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_xenbus_printf
	cbz	w0, LBB0_5
; %bb.4:
	mov	x24, x0
Lloh9:
	adrp	x22, l_.str.4@PAGE
Lloh10:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	w4, [x23, #12]
	ldr	w0, [x22]
Lloh11:
	adrp	x2, l_.str.5@PAGE
Lloh12:
	add	x2, x2, l_.str.5@PAGEOFF
Lloh13:
	adrp	x3, l_.str.3@PAGE
Lloh14:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_xenbus_printf
	cbz	w0, LBB0_12
; %bb.6:
	mov	x24, x0
Lloh15:
	adrp	x22, l_.str.6@PAGE
Lloh16:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_7:
	cbnz	w21, LBB0_9
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_kfree
LBB0_10:
Lloh22:
	adrp	x2, l_.str.13@PAGE
Lloh23:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	mov	x3, x22
	bl	_xenbus_dev_fatal
LBB0_11:
	mov	x0, x24
	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
LBB0_12:
	ldp	w8, w4, [x23, #4]
	ldr	w0, [x22]
	cmp	w4, w8
	b.ne	LBB0_15
; %bb.13:
Lloh24:
	adrp	x2, l_.str.7@PAGE
Lloh25:
	add	x2, x2, l_.str.7@PAGEOFF
Lloh26:
	adrp	x3, l_.str.3@PAGE
Lloh27:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_xenbus_printf
	cbz	w0, LBB0_19
; %bb.14:
	mov	x24, x0
Lloh28:
	adrp	x22, l_.str.8@PAGE
Lloh29:
	add	x22, x22, l_.str.8@PAGEOFF
	b	LBB0_7
LBB0_15:
Lloh30:
	adrp	x2, l_.str.9@PAGE
Lloh31:
	add	x2, x2, l_.str.9@PAGEOFF
Lloh32:
	adrp	x3, l_.str.3@PAGE
Lloh33:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_xenbus_printf
	cbz	w0, LBB0_17
; %bb.16:
	mov	x24, x0
Lloh34:
	adrp	x22, l_.str.10@PAGE
Lloh35:
	add	x22, x22, l_.str.10@PAGEOFF
	b	LBB0_7
LBB0_17:
	ldr	w4, [x23, #4]
	ldr	w0, [x22]
Lloh36:
	adrp	x2, l_.str.11@PAGE
Lloh37:
	add	x2, x2, l_.str.11@PAGEOFF
Lloh38:
	adrp	x3, l_.str.3@PAGE
Lloh39:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_xenbus_printf
	cbz	w0, LBB0_19
; %bb.18:
	mov	x24, x0
Lloh40:
	adrp	x22, l_.str.12@PAGE
Lloh41:
	add	x22, x22, l_.str.12@PAGEOFF
	b	LBB0_7
LBB0_19:
	cbz	w21, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_kfree
LBB0_21:
	mov	w24, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory while writing ring references"

l_.str.1:                               ; @.str.1
	.asciz	"%s/queue-%u"

l_.str.2:                               ; @.str.2
	.asciz	"tx-ring-ref"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"rx-ring-ref"

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"event-channel-tx"

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

l_.str.11:                              ; @.str.11
	.asciz	"event-channel-rx"

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

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

	.no_dead_strip	_write_queue_xenstore_keys
.subsections_via_symbols
