	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pd_probe_drive
_pd_probe_drive:                        ## @pd_probe_drive
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PD_BITS@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_alloc_disk
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	32(%rax), %edi
	movl	16(%rbx), %esi
	callq	_strcpy
	movq	_pd_fops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_major@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_pd@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	subq	(%rax), %rcx
	sarq	$3, %rcx
	movabsq	$-6148914691236517205, %rax     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	movb	(%r15), %cl
	shlq	%cl, %rax
	movl	%eax, (%r14)
	movq	%r14, 8(%rbx)
	movq	%rbx, 8(%r14)
	movq	_pd_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	cmpl	$-1, (%rbx)
	je	LBB0_2
## %bb.6:
	movq	_pd_identify@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pd_special_command
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$0, (%rbx)
	movq	_pd_identify@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pd_special_command
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jle	LBB0_3
LBB0_5:
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_disk                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PD_BITS,4,2                    ## @PD_BITS
	.comm	_pd_fops,4,2                    ## @pd_fops
	.comm	_major,4,2                      ## @major
	.comm	_pd,8,3                         ## @pd
	.comm	_pd_queue,4,2                   ## @pd_queue
	.comm	_pd_identify,4,2                ## @pd_identify
	.no_dead_strip	_pd_probe_drive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pd_probe_drive
_pd_probe_drive:                        ; @pd_probe_drive
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x21, _PD_BITS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PD_BITS@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w0, w9, w8
	bl	_alloc_disk
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #32]
	ldr	w1, [x19, #16]
	bl	_strcpy
Lloh2:
	adrp	x8, _pd_fops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pd_fops@GOTPAGEOFF]
	str	x8, [x20, #24]
Lloh4:
	adrp	x8, _major@GOTPAGE
Lloh5:
	ldr	x8, [x8, _major@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh7:
	adrp	x8, _pd@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pd@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sub	x8, x19, x8
	asr	x8, x8, #3
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	mul	x8, x8, x9
	ldr	w9, [x21]
	lsl	x8, x8, x9
	str	w8, [x20]
	str	x20, [x19, #8]
	str	x19, [x20, #8]
Lloh10:
	adrp	x8, _pd_queue@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pd_queue@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.2:
Lloh13:
	adrp	x8, _pd_identify@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pd_identify@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pd_special_command
	cbnz	x0, LBB0_7
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	wzr, [x19]
Lloh16:
	adrp	x21, _pd_identify@GOTPAGE
Lloh17:
	ldr	x21, [x21, _pd_identify@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pd_special_command
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
LBB0_7:
	str	xzr, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_put_disk
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PD_BITS,4,2                    ; @PD_BITS
	.comm	_pd_fops,4,2                    ; @pd_fops
	.comm	_major,4,2                      ; @major
	.comm	_pd,8,3                         ; @pd
	.comm	_pd_queue,4,2                   ; @pd_queue
	.comm	_pd_identify,4,2                ; @pd_identify
	.no_dead_strip	_pd_probe_drive
.subsections_via_symbols
