	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_dax                      ## -- Begin function alloc_dax
	.p2align	4, 0x90
_alloc_dax:                             ## @alloc_dax
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_kstrdup
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r13, %r13
	je	LBB0_8
LBB0_2:
	movq	_MINORMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movl	(%r14), %ecx
	movq	_dax_minor_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	%eax, %r14d
	movq	_dax_devt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_MKDEV
	movl	%eax, %edi
	callq	_dax_dev_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_dax_add_host
	movq	%r15, 8(%rbx)
	movq	%r12, (%rbx)
	movq	_DAXDEV_F_SYNC@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_set_dax_synchronous
	jmp	LBB0_9
LBB0_6:
	movq	_dax_minor_ida@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_ida_simple_remove
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dax_minor_ida,4,2              ## @dax_minor_ida
	.comm	_MINORMASK,8,3                  ## @MINORMASK
	.comm	_dax_devt,4,2                   ## @dax_devt
	.comm	_DAXDEV_F_SYNC,8,3              ## @DAXDEV_F_SYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_dax                      ; -- Begin function alloc_dax
	.p2align	2
_alloc_dax:                             ; @alloc_dax
	.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	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_kstrdup
	mov	x22, x0
	cbz	x23, LBB0_2
; %bb.1:
	cbz	x22, LBB0_8
LBB0_2:
Lloh2:
	adrp	x8, _MINORMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MINORMASK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x2, x8, #1
	ldr	w3, [x24]
Lloh5:
	adrp	x0, _dax_minor_ida@GOTPAGE
Lloh6:
	ldr	x0, [x0, _dax_minor_ida@GOTPAGEOFF]
	mov	w1, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x24, x0
Lloh7:
	adrp	x8, _dax_devt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dax_devt@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_MAJOR
	mov	x1, x24
	bl	_MKDEV
	bl	_dax_dev_get
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x1, x22
	bl	_dax_add_host
	stp	x21, x20, [x23]
Lloh10:
	adrp	x8, _DAXDEV_F_SYNC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DAXDEV_F_SYNC@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	tst	x8, x19
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x23
	bl	_set_dax_synchronous
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x0, _dax_minor_ida@GOTPAGE
Lloh14:
	ldr	x0, [x0, _dax_minor_ida@GOTPAGEOFF]
	mov	x1, x24
	bl	_ida_simple_remove
LBB0_7:
	mov	x0, x22
	bl	_kfree
LBB0_8:
	mov	x23, #0
LBB0_9:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dax_minor_ida,4,2              ; @dax_minor_ida
	.comm	_MINORMASK,8,3                  ; @MINORMASK
	.comm	_dax_devt,4,2                   ; @dax_devt
	.comm	_DAXDEV_F_SYNC,8,3              ; @DAXDEV_F_SYNC
.subsections_via_symbols
