	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libzfs_fru_gather
_libzfs_fru_gather:                     ## @libzfs_fru_gather
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %rax
	cmpb	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	__topo_node_name
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_FM_FMRI_AUTHORITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_FM_FMRI_AUTH_CHASSIS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%rbx, %rdi
	callq	__topo_prop_get_string
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_strlcpy
LBB0_4:
	movq	%rbx, %rdi
	callq	__topo_node_name
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%rbx, %rdi
	callq	__topo_prop_get_string
	testq	%rax, %rax
	jne	LBB0_17
## %bb.6:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_libzfs_fru_lookup
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	leaq	-72(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	__topo_node_fru
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:
	movq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r14, %rdi
	callq	__topo_fmri_nvl2str
	movq	%rax, %rbx
	movq	-72(%rbp), %rdi
	callq	_nvlist_free
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_7:
	movq	-48(%rbp), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	__topo_hdl_strfree
LBB0_17:
	movq	_TOPO_WALK_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$32, %edi
	movl	$1, %esi
	callq	_calloc
	movq	-48(%rbp), %r12
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, %r13
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	-64(%rbp), %rdi
	callq	_strdup
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	__topo_hdl_strfree
	movq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	__topo_hdl_strfree
	movq	%r13, %rdi
	callq	_fru_strhash
	movq	16(%r15), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, 8(%rbx)
	movq	%rbx, (%rcx,%rax,8)
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 8(%r15)
	jmp	LBB0_17
LBB0_15:
	movq	%r13, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
LBB0_12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	__topo_hdl_strfree
	movq	-64(%rbp), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chassis"

	.comm	_FM_FMRI_AUTHORITY,8,3          ## @FM_FMRI_AUTHORITY
	.comm	_FM_FMRI_AUTH_CHASSIS,8,3       ## @FM_FMRI_AUTH_CHASSIS
L_.str.1:                               ## @.str.1
	.asciz	"disk"

	.comm	_TOPO_WALK_NEXT,4,2             ## @TOPO_WALK_NEXT
L_.str.2:                               ## @.str.2
	.asciz	"io"

L_.str.3:                               ## @.str.3
	.asciz	"devfs-path"

	.no_dead_strip	_libzfs_fru_gather
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libzfs_fru_gather
_libzfs_fru_gather:                     ; @libzfs_fru_gather
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x2]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	__topo_node_name
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _FM_FMRI_AUTHORITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FM_FMRI_AUTHORITY@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
Lloh5:
	adrp	x8, _FM_FMRI_AUTH_CHASSIS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FM_FMRI_AUTH_CHASSIS@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	add	x3, sp, #16
	add	x4, sp, #4
	mov	x0, x21
	bl	__topo_prop_get_string
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	ldr	x1, [sp, #16]
	mov	w2, #8
	bl	_strlcpy
LBB0_4:
	mov	x0, x21
	bl	__topo_node_name
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_11
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x3, sp, #16
	add	x4, sp, #4
	mov	x0, x21
	bl	__topo_prop_get_string
	cbnz	x0, LBB0_11
; %bb.6:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_libzfs_fru_lookup
	cbnz	x0, LBB0_9
; %bb.7:
	add	x1, sp, #24
	add	x3, sp, #4
	mov	x0, x21
	mov	x2, #0
	bl	__topo_node_fru
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x1, [sp, #24]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	__topo_fmri_nvl2str
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_nvlist_free
	cbz	x21, LBB0_12
LBB0_9:
	ldr	x1, [sp, #16]
LBB0_10:
	mov	x0, x19
	bl	__topo_hdl_strfree
LBB0_11:
Lloh14:
	adrp	x8, _TOPO_WALK_NEXT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TOPO_WALK_NEXT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	w0, #32
	mov	w1, #1
	bl	_calloc
	ldr	x22, [sp, #16]
	cbz	x0, LBB0_17
; %bb.13:
	mov	x21, x0
	mov	x0, x22
	bl	_strdup
	mov	x23, x0
	str	x0, [x21, #16]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x0, [sp, #8]
	bl	_strdup
	str	x0, [x21, #24]
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x22
	bl	__topo_hdl_strfree
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	__topo_hdl_strfree
	mov	x0, x23
	bl	_fru_strhash
	ldr	x8, [x20, #16]
	lsl	x9, x0, #3
	ldr	x10, [x8, x9]
	str	x10, [x21, #8]
	str	x21, [x8, x9]
	ldr	x8, [x20, #8]
	str	x8, [x21]
	str	x21, [x20, #8]
	b	LBB0_11
LBB0_16:
	mov	x0, x23
	bl	_free
	mov	x0, x21
	bl	_free
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	bl	__topo_hdl_strfree
	ldr	x1, [sp, #8]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chassis"

	.comm	_FM_FMRI_AUTHORITY,8,3          ; @FM_FMRI_AUTHORITY
	.comm	_FM_FMRI_AUTH_CHASSIS,8,3       ; @FM_FMRI_AUTH_CHASSIS
l_.str.1:                               ; @.str.1
	.asciz	"disk"

	.comm	_TOPO_WALK_NEXT,4,2             ; @TOPO_WALK_NEXT
l_.str.2:                               ; @.str.2
	.asciz	"io"

l_.str.3:                               ; @.str.3
	.asciz	"devfs-path"

	.no_dead_strip	_libzfs_fru_gather
.subsections_via_symbols
