	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenbusb_resume                 ## -- Begin function xenbusb_resume
	.p2align	4, 0x90
_xenbusb_resume:                        ## @xenbusb_resume
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_device_get_children
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	cmpl	$0, -52(%rbp)
	jle	LBB0_10
## %bb.2:
	xorl	%r14d, %r14d
	movq	_DS_NOTPRESENT@GOTPCREL(%rip), %rbx
	movq	_xen_suspend_cancelled@GOTPCREL(%rip), %r15
	movsbl	%r12b, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_DEVICE_RESUME
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	-52(%rbp), %rax
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movsbl	(%rax,%r14), %edi
	callq	_device_get_state
	cmpq	(%rbx), %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	movq	-48(%rbp), %rax
	movzbl	(%rax,%r14), %eax
	movsbl	%al, %edi
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_device_get_ivars
	movq	%rax, %rbx
	leaq	24(%rax), %r13
	movq	%r13, %rdi
	callq	_xs_unregister_watch
	movq	-48(%rbp), %rax
	movsbl	(%rax,%r14), %edi
	movq	_XenbusStateInitialising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xenbus_set_state
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_XENBUSB_GET_OTHEREND_NODE
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rdi
	addq	$7, %rdi
	movq	_M_XENBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%r15, %r12
	movq	%rax, %r15
	movq	(%rbx), %rdx
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	24(%rbx), %rdi
	movq	_M_XENBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	%r15, 24(%rbx)
	movq	%r12, %r15
	movq	_DS_NOTPRESENT@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %rax
	movsbl	(%rax,%r14), %edi
	callq	_DEVICE_RESUME
	movq	%r13, %rdi
	callq	_xs_register_watch
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	xorl	%ecx, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_NOTPRESENT,8,3              ## @DS_NOTPRESENT
	.comm	_xen_suspend_cancelled,8,3      ## @xen_suspend_cancelled
	.comm	_XenbusStateInitialising,4,2    ## @XenbusStateInitialising
	.comm	_M_XENBUS,4,2                   ## @M_XENBUS
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%s/state"

	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_XenbusStateClosed,8,3          ## @XenbusStateClosed
	.comm	_XenbusStateConnected,8,3       ## @XenbusStateConnected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenbusb_resume                 ; -- Begin function xenbusb_resume
	.p2align	2
_xenbusb_resume:                        ; @xenbusb_resume
	.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
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_device_get_children
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x25, _DS_NOTPRESENT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DS_NOTPRESENT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _xen_suspend_cancelled@GOTPAGE
Lloh3:
	ldr	x26, [x26, _xen_suspend_cancelled@GOTPAGEOFF]
Lloh4:
	adrp	x28, _M_XENBUS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _M_XENBUS@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh8:
	adrp	x27, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _M_WAITOK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_DEVICE_RESUME
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [sp, #4]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8, x24]
	bl	_device_get_state
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x26]
	ldr	x8, [sp, #8]
	ldrb	w8, [x8, x24]
	sxtb	w0, w8
	cbnz	x9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_device_get_ivars
	mov	x22, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_xs_unregister_watch
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8, x24]
Lloh10:
	adrp	x8, _XenbusStateInitialising@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XenbusStateInitialising@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_xenbus_set_state
	mov	x0, x19
	mov	x1, x22
	bl	_XENBUSB_GET_OTHEREND_NODE
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #32]
	add	x0, x8, #7
	ldr	w1, [x28]
	ldr	w2, [x27]
	bl	_malloc
	mov	x23, x0
	ldr	x2, [x22]
	mov	x1, x20
	bl	_sprintf
	ldr	x0, [x22, #24]
	ldr	w1, [x28]
	bl	_free
	str	x23, [x22, #24]
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8, x24]
	bl	_DEVICE_RESUME
	mov	x0, x21
	bl	_xs_register_watch
	b	LBB0_4
LBB0_9:
	ldr	x0, [sp, #8]
Lloh13:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_free
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_NOTPRESENT,8,3              ; @DS_NOTPRESENT
	.comm	_xen_suspend_cancelled,8,3      ; @xen_suspend_cancelled
	.comm	_XenbusStateInitialising,4,2    ; @XenbusStateInitialising
	.comm	_M_XENBUS,4,2                   ; @M_XENBUS
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%s/state"

	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_XenbusStateClosed,8,3          ; @XenbusStateClosed
	.comm	_XenbusStateConnected,8,3       ; @XenbusStateConnected
.subsections_via_symbols
