	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_register_queue             ## -- Begin function blk_register_queue
	.p2align	4, 0x90
_blk_register_queue:                    ## @blk_register_queue
	.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	%rdi, %r15
	callq	_disk_to_dev
	movq	%rax, %r12
	movq	(%r15), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%r12, %rdi
	callq	_blk_trace_init_sysfs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_kobject_get
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_kobject_add
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r14)
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_elv_register_queue
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movq	_KOBJ_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
	movq	%r14, %rdi
	callq	_kobject_del
	movq	%r15, %rdi
	callq	_disk_to_dev
	movq	%rax, %rdi
	callq	_blk_trace_remove_sysfs
	movl	%r12d, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"queue"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
	.comm	_KOBJ_REMOVE,4,2                ## @KOBJ_REMOVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_register_queue             ; -- Begin function blk_register_queue
	.p2align	2
_blk_register_queue:                    ; @blk_register_queue
	.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, x0
	bl	_disk_to_dev
	mov	x22, x0
	ldr	x20, [x19]
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_blk_trace_init_sysfs
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	mov	x0, x22
	bl	_kobject_get
	mov	x1, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_kobject_add
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh7:
	adrp	x8, _KOBJ_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KOBJ_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kobject_uevent
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_elv_register_queue
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.7:
Lloh10:
	adrp	x8, _KOBJ_REMOVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KOBJ_REMOVE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kobject_uevent
	mov	x0, x20
	bl	_kobject_del
	mov	x0, x19
	bl	_disk_to_dev
	bl	_blk_trace_remove_sysfs
	b	LBB0_3
LBB0_8:
	mov	x21, x0
	b	LBB0_3
LBB0_9:
	mov	w21, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"queue"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
	.comm	_KOBJ_REMOVE,4,2                ; @KOBJ_REMOVE
.subsections_via_symbols
