	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenbusb_enumerate_bus
_xenbusb_enumerate_bus:                 ## @xenbusb_enumerate_bus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_XST_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-24(%rbp), %rcx
	leaq	-32(%rbp), %r8
	callq	_xs_directory
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, -24(%rbp)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	-32(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_XENBUSB_ENUMERATE_TYPE
	incq	%rbx
	cmpq	-24(%rbp), %rbx
	jb	LBB0_3
LBB0_4:
	movq	-32(%rbp), %rdi
	movq	_M_XENSTORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XST_NIL,4,2                    ## @XST_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenbusb_enumerate_bus
_xenbusb_enumerate_bus:                 ; @xenbusb_enumerate_bus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _XST_NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XST_NIL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, sp
	add	x4, sp, #8
	bl	_xs_directory
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	x1, [x8, x20, lsl #3]
	bl	_XENBUSB_ENUMERATE_TYPE
	add	x20, x20, #1
	ldr	x8, [sp]
	cmp	x20, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x0, [sp, #8]
Lloh5:
	adrp	x8, _M_XENSTORE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_XENSTORE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_free
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XST_NIL,4,2                    ; @XST_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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