	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_disk                       ## -- Begin function add_disk
	.p2align	4, 0x90
_add_disk:                              ## @add_disk
	.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, %rbx
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rdi)
	movl	$0, %edi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 32(%rbx)
	movl	$0, %edi
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
LBB0_3:
	callq	_WARN_ON
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_GENHD_FL_EXT_DEVT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rbx)
	sete	%r14b
LBB0_5:
	movl	%r14d, %edi
	callq	_WARN_ON
	movq	_GENHD_FL_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	leaq	40(%rbx), %rdi
	leaq	-20(%rbp), %rsi
	callq	_blk_alloc_devt
	movl	$1, %edi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	-20(%rbp), %r14d
	movq	%rbx, %rdi
	callq	_disk_to_dev
	movl	%r14d, 4(%rax)
	movl	-20(%rbp), %edi
	callq	_MAJOR
	movq	%rax, 32(%rbx)
	movl	-20(%rbp), %edi
	callq	_MINOR
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_disk_devt
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bdi_register_dev
	movq	%rbx, %rdi
	callq	_disk_devt
	movq	16(%rbx), %rsi
	movq	_exact_match@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_exact_lock@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	%rbx, %r9
	callq	_blk_register_region
	movq	%rbx, %rdi
	callq	_register_disk
	movq	%rbx, %rdi
	callq	_blk_register_queue
	movq	8(%rbx), %rdi
	callq	_blk_get_queue
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	%rbx, %rdi
	callq	_disk_to_dev
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_sysfs_create_link
	movl	%eax, %edi
LBB0_7:
	callq	_WARN_ON
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENHD_FL_EXT_DEVT,4,2          ## @GENHD_FL_EXT_DEVT
	.comm	_GENHD_FL_UP,4,2                ## @GENHD_FL_UP
	.comm	_exact_match,4,2                ## @exact_match
	.comm	_exact_lock,4,2                 ## @exact_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bdi"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_disk                       ; -- Begin function add_disk
	.p2align	2
_add_disk:                              ; @add_disk
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, eq
LBB0_4:
	bl	_WARN_ON
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _GENHD_FL_EXT_DEVT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GENHD_FL_EXT_DEVT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
LBB0_7:
	bl	_WARN_ON
Lloh3:
	adrp	x8, _GENHD_FL_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GENHD_FL_UP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	mov	x0, x19
	str	w8, [x0], #40
	add	x1, sp, #12
	bl	_blk_alloc_devt
	cbz	w0, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	ldr	w20, [sp, #12]
	mov	x0, x19
	bl	_disk_to_dev
	str	w20, [x0, #4]
	ldr	w0, [sp, #12]
	bl	_MAJOR
	str	x0, [x19, #32]
	ldr	w0, [sp, #12]
	bl	_MINOR
	str	x0, [x19, #24]
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_disk_devt
	mov	x1, x0
	mov	x0, x20
	bl	_bdi_register_dev
	mov	x0, x19
	bl	_disk_devt
	ldr	x1, [x19, #16]
Lloh6:
	adrp	x8, _exact_match@GOTPAGE
Lloh7:
	ldr	x8, [x8, _exact_match@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _exact_lock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _exact_lock@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x2, #0
	mov	x5, x19
	bl	_blk_register_region
	mov	x0, x19
	bl	_register_disk
	mov	x0, x19
	bl	_blk_register_queue
	ldr	x0, [x19, #8]
	bl	_blk_get_queue
	bl	_WARN_ON_ONCE
	mov	x0, x19
	bl	_disk_to_dev
	ldr	x1, [x20]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_sysfs_create_link
LBB0_10:
	bl	_WARN_ON
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GENHD_FL_EXT_DEVT,4,2          ; @GENHD_FL_EXT_DEVT
	.comm	_GENHD_FL_UP,4,2                ; @GENHD_FL_UP
	.comm	_exact_match,4,2                ; @exact_match
	.comm	_exact_lock,4,2                 ; @exact_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bdi"

.subsections_via_symbols
