	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_open
_raw_open:                              ## @raw_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_iminor
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_raw_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_raw_devices@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movslq	%ebx, %rbx
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rdi
	callq	_igrab
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_blkdev_get
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	leaq	_raw_open(%rip), %rsi
	movq	%r15, %rdi
	callq	_bd_claim
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	callq	_bdev_logical_block_size
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_set_blocksize
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_bd_release
LBB0_11:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_blkdev_put
	jmp	LBB0_12
LBB0_1:
	movq	_raw_ctl_fops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_12:
	movq	_raw_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_13:
	xorl	%eax, %eax
	callq	_unlock_kernel
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_O_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%r14)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	(%r13), %rcx
	movl	(%rcx,%rbx), %edx
	leal	1(%rdx), %esi
	movl	%esi, (%rcx,%rbx)
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	movq	%r15, 8(%r14)
	movq	_raw_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_raw_ctl_fops,4,2               ## @raw_ctl_fops
	.comm	_raw_mutex,4,2                  ## @raw_mutex
	.comm	_raw_devices,8,3                ## @raw_devices
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_O_DIRECT,4,2                   ## @O_DIRECT
	.no_dead_strip	_raw_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_open
_raw_open:                              ; @raw_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_iminor
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, x0
	bl	_lock_kernel
Lloh0:
	adrp	x0, _raw_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _raw_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x23, _raw_devices@GOTPAGE
Lloh3:
	ldr	x23, [x23, _raw_devices@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x8, x8, w21, sxtw #4
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_8
; %bb.2:
	ldr	x0, [x20]
	bl	_igrab
	ldr	w1, [x19]
	mov	x0, x20
	bl	_blkdev_get
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh4:
	adrp	x1, _raw_open@PAGE
Lloh5:
	add	x1, x1, _raw_open@PAGEOFF
	mov	x0, x20
	bl	_bd_claim
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_bdev_logical_block_size
	mov	x1, x0
	mov	x0, x20
	bl	_set_blocksize
	cbz	w0, LBB0_11
; %bb.5:
	mov	x22, x0
	mov	x0, x20
	bl	_bd_release
LBB0_6:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_blkdev_put
	b	LBB0_9
LBB0_7:
	mov	w22, #0
Lloh6:
	adrp	x8, _raw_ctl_fops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _raw_ctl_fops@GOTPAGEOFF]
	str	x8, [x19, #32]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
Lloh11:
	adrp	x0, _raw_mutex@GOTPAGE
Lloh12:
	ldr	x0, [x0, _raw_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	bl	_unlock_kernel
LBB0_10:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	sxtw	x9, w21
Lloh13:
	adrp	x8, _O_DIRECT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_DIRECT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w10, [x19, #28]
	orr	w10, w10, w8
	ldr	x8, [x20]
	ldr	w8, [x8]
	stp	w8, w10, [x19, #24]
	ldr	x10, [x23]
	lsl	x9, x9, #4
	ldr	w11, [x10, x9]
	add	w12, w11, #1
	str	w12, [x10, x9]
	cbnz	w11, LBB0_13
; %bb.12:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	str	w8, [x9]
LBB0_13:
	str	x20, [x19, #8]
Lloh16:
	adrp	x0, _raw_mutex@GOTPAGE
Lloh17:
	ldr	x0, [x0, _raw_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	bl	_unlock_kernel
	mov	w22, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_raw_ctl_fops,4,2               ; @raw_ctl_fops
	.comm	_raw_mutex,4,2                  ; @raw_mutex
	.comm	_raw_devices,8,3                ; @raw_devices
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_O_DIRECT,4,2                   ; @O_DIRECT
	.no_dead_strip	_raw_open
.subsections_via_symbols
