	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_exception_store_create      ## -- Begin function dm_exception_store_create
	.p2align	4, 0x90
_dm_exception_store_create:             ## @dm_exception_store_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$1, %esi
	jg	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r9, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	(%r13), %rax
	movsbl	(%rax), %edi
	callq	_toupper
	cmpb	$80, %al
	je	LBB0_6
## %bb.7:
	cmpb	$78, %al
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_get_type
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r14)
	movq	%r12, (%r14)
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rax, %r12
	callq	_set_chunk_size
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rbx
	movq	(%r13), %rdi
	callq	_strlen
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.16:
	movq	(%r13), %rsi
	incq	%rsi
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.5(%rip), %rax
LBB0_12:
	movq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_15:
	xorl	%esi, %esi
LBB0_17:
	movq	%r14, %rdi
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rax
	movq	%rax, (%r15)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_19:
	movq	%r12, %rdi
	callq	_put_type
LBB0_20:
	movq	%r14, %rdi
	callq	_kfree
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$2, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient exception store arguments"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Exception store allocation failed"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"P"

L_.str.3:                               ## @.str.3
	.asciz	"N"

L_.str.4:                               ## @.str.4
	.asciz	"Exception store type is not P or N"

L_.str.5:                               ## @.str.5
	.asciz	"Exception store type not recognised"

L_.str.6:                               ## @.str.6
	.asciz	"Exception store type constructor failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_exception_store_create      ; -- Begin function dm_exception_store_create
	.p2align	2
_dm_exception_store_create:             ; @dm_exception_store_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	cmp	w1, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x21, x5
	mov	x22, x4
	mov	x25, x3
	mov	x23, x2
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	ldr	x8, [x23]
	ldrsb	w0, [x8]
	bl	_toupper
	cmp	w0, #80
	b.eq	LBB0_11
; %bb.4:
	and	w8, w0, #0xff
	cmp	w8, #78
	b.ne	LBB0_13
; %bb.5:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_get_type
	cbz	x0, LBB0_12
LBB0_6:
	mov	x24, x0
	stp	x25, x0, [x19]
	ldr	x1, [x23, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_set_chunk_size
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.7:
	ldr	x25, [x24]
	ldr	x0, [x23]
	bl	_strlen
	cmp	w0, #2
	b.lt	LBB0_15
; %bb.8:
	ldr	x8, [x23]
	add	x1, x8, #1
	b	LBB0_16
LBB0_9:
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_20
LBB0_11:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_get_type
	cbnz	x0, LBB0_6
LBB0_12:
Lloh15:
	adrp	x8, l_.str.5@PAGE
Lloh16:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_14:
	str	x8, [x20]
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_19
LBB0_15:
	mov	x1, #0
LBB0_16:
	mov	x0, x19
	blr	x25
	mov	x25, x0
	cbz	w0, LBB0_21
; %bb.17:
Lloh22:
	adrp	x8, l_.str.6@PAGE
Lloh23:
	add	x8, x8, l_.str.6@PAGEOFF
	str	x8, [x20]
LBB0_18:
	mov	x0, x24
	bl	_put_type
LBB0_19:
	mov	x0, x19
	bl	_kfree
LBB0_20:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	w8, #2
	str	w8, [x22]
	str	x19, [x21]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient exception store arguments"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Exception store allocation failed"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"P"

l_.str.3:                               ; @.str.3
	.asciz	"N"

l_.str.4:                               ; @.str.4
	.asciz	"Exception store type is not P or N"

l_.str.5:                               ; @.str.5
	.asciz	"Exception store type not recognised"

l_.str.6:                               ; @.str.6
	.asciz	"Exception store type constructor failed"

.subsections_via_symbols
