	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenbusb_front_get_otherend_node
_xenbusb_front_get_otherend_node:       ## @xenbusb_front_get_otherend_node
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_M_XENBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, (%rbx)
LBB0_2:
	movq	_XST_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	leaq	12(%rbx), %r8
	subq	$8, %rsp
	leaq	-32(%rbp), %rax
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r9
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_xs_gather
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %r15
	movq	_M_XENBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, 8(%rbx)
	movq	-32(%rbp), %rdi
	movq	_M_XENSTORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_XENBUS,4,2                   ## @M_XENBUS
	.comm	_XST_NIL,4,2                    ## @XST_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"backend-id"

L_.str.1:                               ## @.str.1
	.asciz	"%i"

L_.str.2:                               ## @.str.2
	.asciz	"backend"

	.comm	_M_XENSTORE,4,2                 ## @M_XENSTORE
	.no_dead_strip	_xenbusb_front_get_otherend_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenbusb_front_get_otherend_node
_xenbusb_front_get_otherend_node:       ; @xenbusb_front_get_otherend_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x0, [x1]
Lloh0:
	adrp	x22, _M_XENBUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_XENBUS@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	bl	_free
	str	xzr, [x19]
LBB0_2:
Lloh2:
	adrp	x8, _XST_NIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XST_NIL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	add	x4, x19, #12
	str	xzr, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh9:
	adrp	x5, l_.str.2@PAGE
Lloh10:
	add	x5, x5, l_.str.2@PAGEOFF
	add	x7, sp, #8
	mov	x6, #0
	bl	_xs_gather
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x21, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_strdup
	str	x0, [x19]
	mov	x0, x21
	bl	_strlen
	str	w0, [x19, #8]
	ldr	x0, [sp, #8]
Lloh11:
	adrp	x8, _M_XENSTORE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_XENSTORE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_free
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_XENBUS,4,2                   ; @M_XENBUS
	.comm	_XST_NIL,4,2                    ; @XST_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"backend-id"

l_.str.1:                               ; @.str.1
	.asciz	"%i"

l_.str.2:                               ; @.str.2
	.asciz	"backend"

	.comm	_M_XENSTORE,4,2                 ; @M_XENSTORE
	.no_dead_strip	_xenbusb_front_get_otherend_node
.subsections_via_symbols
