	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_alloc_memdev
_s5p_mfc_alloc_memdev:                  ## @s5p_mfc_alloc_memdev
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_device_initialize
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_dev_set_name
	movq	%r15, 16(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	_s5p_mfc_memdev_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_of_dma_configure
	movq	%rbx, %rdi
	callq	_device_add
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_of_reserved_mem_device_init_by_idx
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_device_del
LBB0_4:
	movq	%rbx, %rdi
	callq	_put_device
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%s"

	.comm	_s5p_mfc_memdev_release,4,2     ## @s5p_mfc_memdev_release
	.no_dead_strip	_s5p_mfc_alloc_memdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_alloc_memdev
_s5p_mfc_alloc_memdev:                  ; @s5p_mfc_alloc_memdev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_device_initialize
	mov	x0, x21
	bl	_dev_name
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_dev_set_name
	str	x21, [x19, #16]
	ldr	d0, [x21, #8]
	str	d0, [x19, #8]
Lloh5:
	adrp	x8, _s5p_mfc_memdev_release@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s5p_mfc_memdev_release@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_of_dma_configure
	mov	x0, x19
	bl	_device_add
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_of_reserved_mem_device_init_by_idx
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_device_del
LBB0_4:
	mov	x0, x19
	bl	_put_device
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%s"

	.comm	_s5p_mfc_memdev_release,4,2     ; @s5p_mfc_memdev_release
	.no_dead_strip	_s5p_mfc_alloc_memdev
.subsections_via_symbols
