	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenbusb_probe_children
_xenbusb_probe_children:                ## @xenbusb_probe_children
	.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, %r15d
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_device_get_children
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	cmpl	$0, -52(%rbp)
	jle	LBB0_11
## %bb.2:
	xorl	%ebx, %ebx
	movq	_DS_NOTPRESENT@GOTPCREL(%rip), %r12
	movq	_ENXIO@GOTPCREL(%rip), %r13
	movq	_XenbusStateClosed@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_xenbusb_verify_device
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	-52(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_device_get_state
	movq	-48(%rbp), %rcx
	movl	(%rcx,%rbx,4), %esi
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	callq	_device_probe_and_attach
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r15d, %edi
	callq	_xenbusb_delete_child
	movl	%r15d, %edi
	callq	_device_get_softc
	movq	%rax, %rdi
	callq	_xenbusb_release_confighook
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx
	movl	(%rcx,%rbx,4), %edi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %esi
	callq	_xenbus_set_state
	movq	-48(%rbp), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r15d, %edi
	callq	_xenbusb_delete_child
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_xenbusb_device_sysctl_init
	movq	-48(%rbp), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_device_get_ivars
	movq	%r13, %r12
	movq	%r14, %r13
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	callq	_xs_register_watch
	movq	%r14, %rdi
	movq	%r13, %r14
	movq	%r12, %r13
	movq	_DS_NOTPRESENT@GOTPCREL(%rip), %r12
	callq	_xs_register_watch
	jmp	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rdi
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_NOTPRESENT,8,3              ## @DS_NOTPRESENT
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_XenbusStateClosed,4,2          ## @XenbusStateClosed
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.no_dead_strip	_xenbusb_probe_children
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenbusb_probe_children
_xenbusb_probe_children:                ; @xenbusb_probe_children
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_device_get_children
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _DS_NOTPRESENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DS_NOTPRESENT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ENXIO@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ENXIO@GOTPAGEOFF]
Lloh4:
	adrp	x24, _XenbusStateClosed@GOTPAGE
Lloh5:
	ldr	x24, [x24, _XenbusStateClosed@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_xenbusb_verify_device
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [sp, #4]
	cmp	x21, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	lsl	x20, x21, #2
	ldr	w0, [x8, x20]
	bl	_device_get_state
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	ldr	w1, [x9, x20]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x1
	bl	_device_probe_and_attach
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_xenbusb_delete_child
	mov	x0, x19
	bl	_device_get_softc
	bl	_xenbusb_release_confighook
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	w8, [x8, x21, lsl #2]
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24]
	mov	x0, x8
	bl	_xenbus_set_state
	ldr	x8, [sp, #8]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_xenbusb_delete_child
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x8
	bl	_xenbusb_device_sysctl_init
	ldr	x8, [sp, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_device_get_ivars
	mov	x20, x0
	add	x0, x0, #4
	bl	_xs_register_watch
	mov	x0, x20
	bl	_xs_register_watch
	b	LBB0_4
LBB0_11:
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_free
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_NOTPRESENT,8,3              ; @DS_NOTPRESENT
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_XenbusStateClosed,4,2          ; @XenbusStateClosed
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.no_dead_strip	_xenbusb_probe_children
.subsections_via_symbols
