	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_alloc_rpmb_part
_mmc_blk_alloc_rpmb_part:               ## @mmc_blk_alloc_rpmb_part
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DISK_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_max_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_mmc_rpmb_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %r8
	cmovneq	%r14, %r8
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rdi, %r14
	callq	_snprintf
	movl	%r15d, (%rbx)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	leaq	8(%rbx), %r13
	movq	%r14, 8(%rbx)
	movq	_mmc_rpmb_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_mmc_rpmb_devt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_MKDEV
	movl	%eax, 32(%rbx)
	movq	%r12, 24(%rbx)
	movq	_mmc_blk_rpmb_device_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r13, %rdi
	callq	_device_initialize
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, 56(%rbx)
	leaq	52(%rbx), %r14
	movq	_mmc_rpmb_fileops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_cdev_device_add
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_pr_err
	movq	%r13, %rdi
	callq	_put_device
	jmp	LBB0_6
LBB0_2:
	movq	_mmc_rpmb_ida@GOTPCREL(%rip), %rdi
	movl	%r15d, %esi
	callq	_ida_simple_remove
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	addq	$48, %rdi
	movq	%r12, %rsi
	callq	_list_add
	movq	_STRING_UNITS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-58(%rbp), %r13
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r13, %rcx
	movl	$10, %r8d
	callq	_string_get_size
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mmc_card_id
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mmc_card_name
	movl	%eax, %r12d
	movq	_EXT_CSD_PART_CONFIG_ACC_RPMB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_mmc_rpmb_devt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %ebx
	leaq	L_.str.3(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movq	%r13, %r9
	pushq	%rbx
	pushq	%rax
	callq	_pr_info
	addq	$16, %rsp
	xorl	%r15d, %r15d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DISK_NAME_LEN,4,2              ## @DISK_NAME_LEN
	.comm	_mmc_rpmb_ida,4,2               ## @mmc_rpmb_ida
	.comm	_max_devices,4,2                ## @max_devices
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmcblk%u%s"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_mmc_rpmb_bus_type,4,2          ## @mmc_rpmb_bus_type
	.comm	_mmc_rpmb_devt,4,2              ## @mmc_rpmb_devt
	.comm	_mmc_blk_rpmb_device_release,4,2 ## @mmc_blk_rpmb_device_release
	.comm	_mmc_rpmb_fileops,4,2           ## @mmc_rpmb_fileops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.2:                               ## @.str.2
	.asciz	"%s: could not add character device\n"

	.comm	_STRING_UNITS_2,4,2             ## @STRING_UNITS_2
L_.str.3:                               ## @.str.3
	.asciz	"%s: %s %s partition %u %s, chardev (%d:%d)\n"

	.comm	_EXT_CSD_PART_CONFIG_ACC_RPMB,4,2 ## @EXT_CSD_PART_CONFIG_ACC_RPMB
	.no_dead_strip	_mmc_blk_alloc_rpmb_part
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_alloc_rpmb_part
_mmc_blk_alloc_rpmb_part:               ; @mmc_blk_alloc_rpmb_part
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x26, x4
	mov	x21, x3
	mov	x25, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _DISK_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISK_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	mov	x9, x27
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x27, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _max_devices@GOTPAGE
Lloh9:
	ldr	x8, [x8, _max_devices@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh13:
	adrp	x0, _mmc_rpmb_ida@GOTPAGE
Lloh14:
	ldr	x0, [x0, _mmc_rpmb_ida@GOTPAGEOFF]
	mov	w1, #0
	bl	_ida_simple_get
	mov	x24, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w1, [x23]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x26, #0
	csel	x4, x8, x26, eq
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x27
	bl	_snprintf
	stp	w24, w25, [x23]
	mov	x25, x23
	str	x19, [x25, #8]!
Lloh19:
	adrp	x8, _mmc_rpmb_bus_type@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmc_rpmb_bus_type@GOTPAGEOFF]
	str	x8, [x23, #40]
Lloh21:
	adrp	x26, _mmc_rpmb_devt@GOTPAGE
Lloh22:
	ldr	x26, [x26, _mmc_rpmb_devt@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_MAJOR
	ldr	w1, [x23]
	bl	_MKDEV
	str	w0, [x23, #32]
	str	x20, [x23, #24]
Lloh23:
	adrp	x8, _mmc_blk_rpmb_device_release@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mmc_blk_rpmb_device_release@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x23, #16]
	mov	x0, x25
	bl	_device_initialize
	mov	x0, x25
	mov	x1, x23
	bl	_dev_set_drvdata
	str	x22, [x23, #56]
	add	x24, x23, #52
Lloh26:
	adrp	x1, _mmc_rpmb_fileops@GOTPAGE
Lloh27:
	ldr	x1, [x1, _mmc_rpmb_fileops@GOTPAGEOFF]
	mov	x0, x24
	bl	_cdev_init
Lloh28:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x23, #52]
	mov	x0, x24
	mov	x1, x25
	bl	_cdev_device_add
	mov	x24, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	mov	x0, x25
	bl	_put_device
	b	LBB0_6
LBB0_4:
Lloh33:
	adrp	x0, _mmc_rpmb_ida@GOTPAGE
Lloh34:
	ldr	x0, [x0, _mmc_rpmb_ida@GOTPAGEOFF]
	mov	x1, x24
	bl	_ida_simple_remove
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_6
LBB0_5:
	add	x0, x23, #48
	mov	x1, x22
	bl	_list_add
Lloh38:
	adrp	x8, _STRING_UNITS_2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STRING_UNITS_2@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	sub	x3, x29, #98
	mov	x0, x21
	mov	w1, #512
	mov	w4, #10
	bl	_string_get_size
	mov	x0, x20
	bl	_mmc_card_id
	mov	x21, x0
	mov	x0, x20
	bl	_mmc_card_name
	mov	x20, x0
Lloh41:
	adrp	x8, _EXT_CSD_PART_CONFIG_ACC_RPMB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EXT_CSD_PART_CONFIG_ACC_RPMB@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
	ldr	w0, [x26]
	bl	_MAJOR
	mov	x6, x0
	ldr	w7, [x23]
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	sub	x5, x29, #98
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_pr_info
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x24
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_DISK_NAME_LEN,4,2              ; @DISK_NAME_LEN
	.comm	_mmc_rpmb_ida,4,2               ; @mmc_rpmb_ida
	.comm	_max_devices,4,2                ; @max_devices
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmcblk%u%s"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_mmc_rpmb_bus_type,4,2          ; @mmc_rpmb_bus_type
	.comm	_mmc_rpmb_devt,4,2              ; @mmc_rpmb_devt
	.comm	_mmc_blk_rpmb_device_release,4,2 ; @mmc_blk_rpmb_device_release
	.comm	_mmc_rpmb_fileops,4,2           ; @mmc_rpmb_fileops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.2:                               ; @.str.2
	.asciz	"%s: could not add character device\n"

	.comm	_STRING_UNITS_2,4,2             ; @STRING_UNITS_2
l_.str.3:                               ; @.str.3
	.asciz	"%s: %s %s partition %u %s, chardev (%d:%d)\n"

	.comm	_EXT_CSD_PART_CONFIG_ACC_RPMB,4,2 ; @EXT_CSD_PART_CONFIG_ACC_RPMB
	.no_dead_strip	_mmc_blk_alloc_rpmb_part
.subsections_via_symbols
