	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd_disk_get_sectors
_bd_disk_get_sectors:                   ## @bd_disk_get_sectors
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_bd_get_bdinfo
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	20(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_D_SLICENONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_D_PARTNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	movl	4(%r14), %edx
	movl	(%r14), %ebx
	imull	%edx, %ebx
	movl	%ebx, -20(%rbp)
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_disk_open
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_DIOCGMEDIASIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_disk_ioctl
	movq	%rbx, %rdi
	callq	_disk_close
	movl	-20(%rbp), %ebx
LBB0_4:
	movl	%ebx, %eax
	cltd
	idivl	4(%r14)
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_SLICENONE,4,2                ## @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ## @D_PARTNONE
	.comm	_DIOCGMEDIASIZE,4,2             ## @DIOCGMEDIASIZE
	.no_dead_strip	_bd_disk_get_sectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd_disk_get_sectors
_bd_disk_get_sectors:                   ; @bd_disk_get_sectors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x20, x0, #16
	mov	x0, x20
	bl	_bd_get_bdinfo
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	d0, [x20]
Lloh0:
	adrp	x8, _D_SLICENONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_SLICENONE@GOTPAGEOFF]
	str	d0, [sp, #24]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _D_PARTNONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _D_PARTNONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	str	xzr, [sp, #8]
	ldp	w8, w2, [x0]
	mul	w20, w2, w8
	str	w20, [sp, #4]
	add	x0, sp, #8
	mov	x1, x20
	bl	_disk_open
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _DIOCGMEDIASIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIOCGMEDIASIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	add	x2, sp, #4
	bl	_disk_ioctl
	add	x0, sp, #8
	bl	_disk_close
	ldr	w20, [sp, #4]
LBB0_3:
	ldr	w8, [x19, #4]
	sdiv	w0, w20, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_D_SLICENONE,4,2                ; @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ; @D_PARTNONE
	.comm	_DIOCGMEDIASIZE,4,2             ; @DIOCGMEDIASIZE
	.no_dead_strip	_bd_disk_get_sectors
.subsections_via_symbols
