	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_drv_get_space              ## -- Begin function mac_drv_get_space
	.p2align	4, 0x90
_mac_drv_get_space:                     ## @mac_drv_get_space
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%r14), %rbx
	movl	%r15d, %eax
	addq	%rbx, %rax
	cmpq	16(%r14), %rax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_printk
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	addq	(%r14), %rbx
	movq	%rax, 8(%r14)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	24(%r14), %esi
	addl	%ebx, %esi
	subl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_drv_get_space (%d bytes), "

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected SMT memory size requested: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mac_drv_get_space end\n"

L_.str.3:                               ## @.str.3
	.asciz	"virt addr: %lx\n"

L_.str.4:                               ## @.str.4
	.asciz	"bus  addr: %lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_drv_get_space              ; -- Begin function mac_drv_get_space
	.p2align	2
_mac_drv_get_space:                     ; @mac_drv_get_space
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldp	x8, x10, [x19, #8]
	add	x9, x8, w20, uxtw
	cmp	x9, x10
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_printk
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	ldr	x10, [x19]
	add	x20, x10, x8
	str	x9, [x19, #8]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	add	x8, x8, x20
	sub	x8, x8, x9
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_drv_get_space (%d bytes), "

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected SMT memory size requested: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mac_drv_get_space end\n"

l_.str.3:                               ; @.str.3
	.asciz	"virt addr: %lx\n"

l_.str.4:                               ; @.str.4
	.asciz	"bus  addr: %lx\n"

.subsections_via_symbols
