	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function umass_disk_ioctl
_umass_disk_ioctl:                      ## @umass_disk_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_disk_ioctl
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.3:
	movl	%ebx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.4:
	movq	_umass_uaa@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	xorl	%esi, %esi
	callq	_usb_msc_read_capacity
	testl	%eax, %eax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$129, %ebx
	jne	LBB0_8
## %bb.6:
	movl	-24(%rbp), %eax
	jmp	LBB0_7
LBB0_8:
	movl	-20(%rbp), %eax
LBB0_7:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_umass_uaa,4,2                  ## @umass_uaa
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_umass_disk_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function umass_disk_ioctl
_umass_disk_ioctl:                      ; @umass_disk_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	bl	_disk_ioctl
Lloh0:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.2:
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _umass_uaa@GOTPAGE
Lloh4:
	ldr	x8, [x8, _umass_uaa@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	w1, #0
	bl	_usb_msc_read_capacity
	cbz	w0, LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	cmp	w20, #129
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_umass_uaa,4,2                  ; @umass_uaa
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_umass_disk_ioctl
.subsections_via_symbols
