	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linear_ctr
_linear_ctr:                            ## @linear_ctr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$2, %esi
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-25(%rbp), %rcx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	movq	(%r15), %r15
	movl	24(%rbx), %edi
	callq	_dm_table_get_mode
	movq	%r14, %rcx
	addq	$8, %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_dm_get_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.3(%rip), %rax
LBB0_8:
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rbx)
	movq	%r14, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid argument count"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"dm-linear: Cannot allocate linear context"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"%llu%c"

L_.str.3:                               ## @.str.3
	.asciz	"dm-linear: Invalid device sector"

L_.str.4:                               ## @.str.4
	.asciz	"dm-linear: Device lookup failed"

	.no_dead_strip	_linear_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linear_ctr
_linear_ctr:                            ; @linear_ctr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	cmp	w1, #2
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x0, [x21, #8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	add	x3, sp, #7
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	mov	x22, x20
	str	x8, [x22], #8
	ldr	x21, [x21]
	ldr	w0, [x19, #24]
	bl	_dm_table_get_mode
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_dm_get_device
	cbz	x0, LBB0_12
; %bb.4:
Lloh5:
	adrp	x8, l_.str.4@PAGE
Lloh6:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_8:
	str	x8, [x19]
	mov	x0, x20
	bl	_kfree
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #64
	ret
LBB0_12:
	movi.2s	v0, #1
	str	d0, [x19, #8]
	str	x20, [x19, #16]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid argument count"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"dm-linear: Cannot allocate linear context"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"%llu%c"

l_.str.3:                               ; @.str.3
	.asciz	"dm-linear: Invalid device sector"

l_.str.4:                               ; @.str.4
	.asciz	"dm-linear: Device lookup failed"

	.no_dead_strip	_linear_ctr
.subsections_via_symbols
