	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb_diskioctl
_cb_diskioctl:                          ## @cb_diskioctl
	.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
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	_ndisks@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	%rcx, %rbx
	cmpl	$129, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.5:
	movl	$512, (%rbx)                    ## imm = 0x200
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	movq	_EBADF@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_disk_fd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%esi, %r15d
	movl	(%rax,%r15,4), %edi
	leaq	-32(%rbp), %rsi
	callq	_fstat
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-28(%rbp), %edi
	callq	_S_ISCHR
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	movl	(%rax,%r15,4), %edi
	leaq	-32(%rbp), %rdx
	movl	$129, %esi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movl	-32(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ndisks,4,2                     ## @ndisks
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_disk_fd,8,3                    ## @disk_fd
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_cb_diskioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb_diskioctl
_cb_diskioctl:                          ; @cb_diskioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _ndisks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ndisks@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.2:
	mov	x19, x3
	cmp	w2, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #0
	mov	w8, #512
	str	w8, [x19]
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _EBADF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x21, _disk_fd@GOTPAGE
Lloh6:
	ldr	x21, [x21, _disk_fd@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8, w20, uxtw #2]
	add	x1, sp, #8
	bl	_fstat
	cbz	w0, LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	w0, [sp, #12]
	bl	_S_ISCHR
	cbz	w0, LBB0_12
; %bb.11:
	mov	w8, w20
	ldr	x9, [x21]
	ldr	w0, [x9, x8, lsl #2]
	add	x2, sp, #8
	mov	w1, #129
	bl	_ioctl
	cbnz	w0, LBB0_7
LBB0_12:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ndisks,4,2                     ; @ndisks
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_disk_fd,8,3                    ; @disk_fd
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_cb_diskioctl
.subsections_via_symbols
