	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_probe_dev                  ## -- Begin function zfs_probe_dev
	.p2align	4, 0x90
_zfs_probe_dev:                         ## @zfs_probe_dev
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, -72(%rbp)
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.3:
	movl	%eax, %ebx
	movq	_archsw@GOTPCREL(%rip), %rax
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	movq	_DIOCGMEDIASIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	_DIOCGSECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	%r15, -56(%rbp)
	movq	%r14, -48(%rbp)
	movq	-80(%rbp), %rax
	movq	-64(%rbp), %rbx
	movq	%rax, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	je	LBB0_11
## %bb.12:
	cqto
	idivq	%rbx
	jmp	LBB0_13
LBB0_4:
	movq	-88(%rbp), %rdi
	movl	(%rdi), %r13d
	movl	4(%rdi), %r12d
	callq	_free
	movq	_D_PARTNONE@GOTPCREL(%rip), %rax
	movl	-72(%rbp), %ebx
	cmpl	(%rax), %r13d
	je	LBB0_8
## %bb.5:
	movq	_D_SLICENONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_8
## %bb.6:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_zfs_probe
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:
	movq	_zfs_diskread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-72(%rbp), %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_ptable_open
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %rbx
	movq	_zfs_probe_partition@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ptable_iterate
	movq	%rbx, %rdi
	callq	_ptable_close
LBB0_15:
	movl	-72(%rbp), %edi
	callq	_close
	testq	%r14, %r14
	je	LBB0_18
## %bb.16:
	cmpq	$0, (%r14)
	jne	LBB0_18
LBB0_17:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_archsw,8,3                     ## @archsw
	.comm	_D_PARTNONE,4,2                 ## @D_PARTNONE
	.comm	_D_SLICENONE,4,2                ## @D_SLICENONE
	.comm	_DIOCGMEDIASIZE,4,2             ## @DIOCGMEDIASIZE
	.comm	_DIOCGSECTORSIZE,4,2            ## @DIOCGSECTORSIZE
	.comm	_zfs_diskread,4,2               ## @zfs_diskread
	.comm	_zfs_probe_partition,4,2        ## @zfs_probe_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_probe_dev                  ; -- Begin function zfs_probe_dev
	.p2align	2
_zfs_probe_dev:                         ; @zfs_probe_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	str	w0, [sp, #8]
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x8, _archsw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _archsw@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, sp, #40
	mov	x1, x20
	mov	x2, #0
	blr	x8
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	x0, [sp, #40]
	ldp	w22, w23, [x0]
	bl	_free
Lloh6:
	adrp	x8, _D_PARTNONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D_PARTNONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _D_SLICENONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _D_SLICENONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w21, [sp, #8]
	cmp	w22, w8
	ccmp	w23, w9, #4, ne
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_zfs_probe
	cbz	w0, LBB0_15
LBB0_6:
Lloh12:
	adrp	x8, _DIOCGMEDIASIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIOCGMEDIASIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_ioctl
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.7:
Lloh15:
	adrp	x8, _DIOCGSECTORSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DIOCGSECTORSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x8, sp, #8
	add	x2, x8, #8
	mov	x0, x21
	bl	_ioctl
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.8:
	stp	x20, x19, [sp, #24]
	ldr	x8, [sp]
	ldr	x2, [sp, #16]
Lloh18:
	adrp	x9, _zfs_diskread@GOTPAGE
Lloh19:
	ldr	x9, [x9, _zfs_diskread@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x9]
	sdiv	x1, x8, x2
	add	x0, sp, #8
	bl	_ptable_open
	cbz	x0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh21:
	adrp	x8, _zfs_probe_partition@GOTPAGE
Lloh22:
	ldr	x8, [x8, _zfs_probe_partition@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_ptable_iterate
	mov	x0, x20
	bl	_ptable_close
LBB0_10:
	mov	w22, #0
LBB0_11:
	ldr	w0, [sp, #8]
	bl	_close
	cbz	x19, LBB0_14
; %bb.12:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _ENXIO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w22, w9, w22, eq
	b	LBB0_14
LBB0_13:
Lloh27:
	adrp	x8, _ENXIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
LBB0_14:
	mov	x0, x22
	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
	add	sp, sp, #112
	ret
LBB0_15:
	mov	w22, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_archsw,8,3                     ; @archsw
	.comm	_D_PARTNONE,4,2                 ; @D_PARTNONE
	.comm	_D_SLICENONE,4,2                ; @D_SLICENONE
	.comm	_DIOCGMEDIASIZE,4,2             ; @DIOCGMEDIASIZE
	.comm	_DIOCGSECTORSIZE,4,2            ; @DIOCGSECTORSIZE
	.comm	_zfs_diskread,4,2               ; @zfs_diskread
	.comm	_zfs_probe_partition,4,2        ; @zfs_probe_partition
.subsections_via_symbols
