	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_get_table_device            ## -- Begin function dm_get_table_device
	.p2align	4, 0x90
_dm_get_table_device:                   ## @dm_get_table_device
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_mutex_lock
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_find_table_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$24, %rdi
	callq	_refcount_inc
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movl	$32, %edi
	callq	_kmalloc_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	%r14d, 16(%rax)
	movq	$0, 8(%rax)
	movq	%rax, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_open_table_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_5:
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_format_dev_t
	leaq	24(%rbx), %rdi
	movl	$1, %esi
	callq	_refcount_set
	movq	%rbx, %rdi
	addq	$28, %rdi
	movq	%r12, %rsi
	callq	_list_add
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_get_table_device            ; -- Begin function dm_get_table_device
	.p2align	2
_dm_get_table_device:                   ; @dm_get_table_device
	.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, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	bl	_mutex_lock
	add	x22, x20, #4
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_find_table_device
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x0, x0, #24
	bl	_refcount_inc
LBB0_2:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w24, #0
	str	x21, [x19]
LBB0_3:
	mov	x0, x24
	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_4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	w0, #32
	bl	_kmalloc_node
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	str	w24, [x0, #16]
	str	xzr, [x0, #8]
	mov	x1, x23
	mov	x2, x20
	bl	_open_table_device
	cbz	w0, LBB0_8
; %bb.6:
	mov	x24, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	bl	_kfree
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_3
LBB0_8:
	mov	x24, x21
	ldr	w0, [x24], #28
	mov	x1, x23
	bl	_format_dev_t
	add	x0, x21, #24
	mov	w1, #1
	bl	_refcount_set
	mov	x0, x24
	mov	x1, x22
	bl	_list_add
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
