	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd_ioctl
_bd_ioctl:                              ## @bd_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_bd_get_bdinfo
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_DEVT_DISK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_disk_ioctl
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
LBB0_4:
	cmpl	$129, %r15d
	je	LBB0_8
## %bb.5:
	cmpl	$128, %r15d
	jne	LBB0_9
## %bb.6:
	movl	(%r12), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	(%r12), %eax
	imull	4(%r12), %eax
LBB0_7:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DEVT_DISK,8,3                  ## @DEVT_DISK
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_bd_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd_ioctl
_bd_ioctl:                              ; @bd_ioctl
	.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, x2
	mov	x20, x1
	ldr	x22, [x0]
	mov	x0, x22
	bl	_bd_get_bdinfo
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DEVT_DISK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEVT_DISK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_disk_ioctl
Lloh3:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_3:
	cmp	w20, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #0
	ldr	w8, [x21]
	str	w8, [x19]
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	ldp	w9, w8, [x21]
	mul	w8, w9, w8
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DEVT_DISK,8,3                  ; @DEVT_DISK
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_bd_ioctl
.subsections_via_symbols
