	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_gendisk                    ## -- Begin function get_gendisk
	.p2align	4, 0x90
_get_gendisk:                           ## @get_gendisk
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_MAJOR
	movq	_BLOCK_EXT_MAJOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_ext_devt_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	%ebx, %edi
	callq	_MINOR
	movl	%eax, %edi
	callq	_blk_mangle_minor
	movq	_ext_devt_idr@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_idr_find
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_part_to_disk
	movq	%rax, %rdi
	callq	_get_disk
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_part_to_disk
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_4:
	movq	_bdev_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_kobj_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rdi
	callq	_kobj_to_dev
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_to_disk                    ## TAILCALL
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	_ext_devt_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_EXT_MAJOR,8,3            ## @BLOCK_EXT_MAJOR
	.comm	_bdev_map,4,2                   ## @bdev_map
	.comm	_ext_devt_mutex,4,2             ## @ext_devt_mutex
	.comm	_ext_devt_idr,4,2               ## @ext_devt_idr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_gendisk                    ; -- Begin function get_gendisk
	.p2align	2
_get_gendisk:                           ; @get_gendisk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_MAJOR
Lloh0:
	adrp	x8, _BLOCK_EXT_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLOCK_EXT_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x0, _ext_devt_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ext_devt_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_MINOR
	bl	_blk_mangle_minor
	mov	x1, x0
Lloh5:
	adrp	x0, _ext_devt_idr@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ext_devt_idr@GOTPAGEOFF]
	bl	_idr_find
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_part_to_disk
	bl	_get_disk
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x20
	bl	_part_to_disk
	mov	x19, x0
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _bdev_map@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bdev_map@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_kobj_lookup
	cbz	x0, LBB0_8
; %bb.5:
	bl	_kobj_to_dev
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_to_disk
LBB0_6:
	mov	x19, #0
LBB0_7:
Lloh10:
	adrp	x0, _ext_devt_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _ext_devt_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_9
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_EXT_MAJOR,8,3            ; @BLOCK_EXT_MAJOR
	.comm	_bdev_map,4,2                   ; @bdev_map
	.comm	_ext_devt_mutex,4,2             ; @ext_devt_mutex
	.comm	_ext_devt_idr,4,2               ; @ext_devt_idr
.subsections_via_symbols
