	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zfs_probe_partition
_zfs_probe_partition:                   ## @zfs_probe_partition
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdx), %rax
	movq	_PART_FREEBSD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_PART_FREEBSD_ZFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_2:
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	_PART_FREEBSD@GOTPCREL(%rip), %rbx
	callq	_strncpy
	movq	(%r13), %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_sprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, -96(%rbp)
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.3:
	movl	16(%r13), %esi
	movl	%eax, %edi
	callq	_zfs_probe
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r15, -104(%rbp)
	movl	16(%r13), %eax
	movl	%eax, -88(%rbp)
	movl	12(%r13), %edx
	movl	%edx, -92(%rbp)
	movq	16(%r14), %rsi
	subq	8(%r14), %rsi
	incq	%rsi
	movq	_zfs_diskread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-104(%rbp), %rdi
	callq	_ptable_open
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	leaq	_zfs_probe_partition(%rip), %rdx
	leaq	-104(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ptable_iterate
	movq	%rbx, %rdi
	callq	_ptable_close
LBB0_7:
	movl	-96(%rbp), %edi
	callq	_close
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PART_FREEBSD,8,3               ## @PART_FREEBSD
	.comm	_PART_FREEBSD_ZFS,8,3           ## @PART_FREEBSD_ZFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s:"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_zfs_diskread,4,2               ## @zfs_diskread
	.no_dead_strip	_zfs_probe_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zfs_probe_partition
_zfs_probe_partition:                   ; @zfs_probe_partition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x2]
Lloh3:
	adrp	x23, _PART_FREEBSD@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PART_FREEBSD@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh5:
	adrp	x10, _PART_FREEBSD_ZFS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PART_FREEBSD_ZFS@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_strlen
	sub	w2, w0, #1
	add	x24, sp, #24
	add	x0, sp, #24
	mov	x1, x22
	bl	_strncpy
	ldr	x0, [x20]
	bl	_strlen
	add	x8, x24, w0, sxtw
	sturb	wzr, [x8, #-1]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	add	x2, sp, #24
	mov	x3, x21
	bl	_sprintf
Lloh10:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #24
	bl	_open
	str	w0, [sp, #8]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	w1, [x20, #16]
	bl	_zfs_probe
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	add	x8, sp, #24
	str	x8, [sp]
	ldur	d0, [x20, #12]
	stur	d0, [sp, #12]
	ldp	x9, x8, [x19, #8]
	sub	x8, x8, x9
	add	x1, x8, #1
Lloh13:
	adrp	x8, _zfs_diskread@GOTPAGE
Lloh14:
	ldr	x8, [x8, _zfs_diskread@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	fmov	w2, s0
	mov	x0, sp
	bl	_ptable_open
	cbz	x0, LBB0_6
; %bb.5:
	mov	x19, x0
Lloh16:
	adrp	x2, _zfs_probe_partition@PAGE
Lloh17:
	add	x2, x2, _zfs_probe_partition@PAGEOFF
	mov	x1, sp
	bl	_ptable_iterate
	mov	x0, x19
	bl	_ptable_close
LBB0_6:
	ldr	w0, [sp, #8]
	bl	_close
LBB0_7:
	ldr	x8, [sp, #56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PART_FREEBSD,8,3               ; @PART_FREEBSD
	.comm	_PART_FREEBSD_ZFS,8,3           ; @PART_FREEBSD_ZFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s:"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_zfs_diskread,4,2               ; @zfs_diskread
	.no_dead_strip	_zfs_probe_partition
.subsections_via_symbols
