	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___smu_get_sdb_partition        ## -- Begin function __smu_get_sdb_partition
	.p2align	4, 0x90
___smu_get_sdb_partition:               ## @__smu_get_sdb_partition
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_smu@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdi
	movl	%r15d, %edx
	callq	_sprintf
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_smu_part_access@GOTPCREL(%rip), %rdi
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_14
## %bb.5:
	movl	%eax, %edi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	callq	_mutex_lock
LBB0_7:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdx
	callq	_of_get_property
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	%r15d, %edi
	callq	_smu_create_sdb_partition
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %eax
	shll	$2, %eax
	movl	%eax, (%r14)
LBB0_11:
	movq	_smu_part_access@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_smu,8,3                        ## @smu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdb-partition-%02x"

L_.str.1:                               ## @.str.1
	.asciz	"smu_get_sdb_partition(%02x)\n"

	.comm	_smu_part_access,4,2            ## @smu_part_access
L_.str.2:                               ## @.str.2
	.asciz	"trying to extract from SMU ...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___smu_get_sdb_partition        ; -- Begin function __smu_get_sdb_partition
	.p2align	2
___smu_get_sdb_partition:               ; @__smu_get_sdb_partition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x22, _smu@GOTPAGE
Lloh4:
	ldr	x22, [x22, _smu@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_sprintf
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
Lloh9:
	adrp	x0, _smu_part_access@GOTPAGE
Lloh10:
	ldr	x0, [x0, _smu_part_access@GOTPAGEOFF]
	cbz	w21, LBB0_6
; %bb.2:
	bl	_mutex_lock_interruptible
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_5:
	mov	x21, #0
	b	LBB0_12
LBB0_6:
	bl	_mutex_lock
LBB0_7:
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, x19
	bl	_of_get_property
	mov	x21, x0
	cbnz	x0, LBB0_11
; %bb.8:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTK
	mov	x0, x20
	bl	_smu_create_sdb_partition
	mov	x21, x0
	cbz	x19, LBB0_11
; %bb.9:
	cbz	x21, LBB0_11
; %bb.10:
	ldr	w8, [x21]
	lsl	w8, w8, #2
	str	w8, [x19]
LBB0_11:
Lloh16:
	adrp	x0, _smu_part_access@GOTPAGE
Lloh17:
	ldr	x0, [x0, _smu_part_access@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_12:
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_smu,8,3                        ; @smu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdb-partition-%02x"

l_.str.1:                               ; @.str.1
	.asciz	"smu_get_sdb_partition(%02x)\n"

	.comm	_smu_part_access,4,2            ; @smu_part_access
l_.str.2:                               ; @.str.2
	.asciz	"trying to extract from SMU ...\n"

.subsections_via_symbols
