	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_cfg_init                  ## -- Begin function mdp5_cfg_init
	.p2align	4, 0x90
_mdp5_cfg_init:                         ## @mdp5_cfg_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	(%rdi), %r12
	movl	(%r12), %edi
	callq	_to_platform_device
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	cmpl	$1, %r15d
	je	LBB0_3
## %bb.4:
	cmpl	$3, %r15d
	jne	LBB0_5
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_cfg_handlers_v3@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_cfg_handlers_v1@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	movl	%eax, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, 16(%rbx,%rax)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$24, %rax
	cmpq	%rax, %rcx
	jne	LBB0_9
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_10:
	movq	8(%rbx,%rax), %rax
	movq	_mdp5_cfg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_12:
	movq	_mdp5_cfg@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movl	(%r12), %edi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_DRM_DEV_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_mdp5_cfg_destroy
LBB0_17:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_18:
	movl	%r13d, 16(%r14)
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdp5_get_config
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DBG
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cfg_handlers_v1,8,3            ## @cfg_handlers_v1
	.comm	_cfg_handlers_v3,8,3            ## @cfg_handlers_v3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected MDP major version: v%d.%d\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_mdp5_cfg,8,3                   ## @mdp5_cfg
L_.str.1:                               ## @.str.1
	.asciz	"unexpected MDP minor revision: v%d.%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"MDP5: %s hw config selected"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_cfg_init                  ; -- Begin function mdp5_cfg_init
	.p2align	2
_mdp5_cfg_init:                         ; @mdp5_cfg_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	ldr	x24, [x0]
	ldr	w0, [x24]
	bl	_to_platform_device
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
	cmp	w21, #1
	b.eq	LBB0_5
; %bb.3:
	cmp	w21, #3
	b.ne	LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _cfg_handlers_v3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cfg_handlers_v3@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _cfg_handlers_v1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cfg_handlers_v1@GOTPAGEOFF]
LBB0_6:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
Lloh9:
	adrp	x25, _mdp5_cfg@GOTPAGE
Lloh10:
	ldr	x25, [x25, _mdp5_cfg@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.7:
	mov	w8, w0
	add	x9, x23, #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w10, w20
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
	ldur	x8, [x9, #-8]
	str	x8, [x25]
LBB0_12:
	ldr	x8, [x25]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_18
; %bb.13:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	ldr	w0, [x24]
	mov	x2, x21
	mov	x3, x20
	bl	_DRM_DEV_ERROR
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	x19, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_mdp5_cfg_destroy
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_18:
	str	w20, [x19, #16]
	ldr	x8, [x25]
	str	x8, [x19, #8]
	mov	x0, x22
	bl	_mdp5_get_config
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x25]
	ldr	w1, [x8]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cfg_handlers_v1,8,3            ; @cfg_handlers_v1
	.comm	_cfg_handlers_v3,8,3            ; @cfg_handlers_v3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected MDP major version: v%d.%d\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_mdp5_cfg,8,3                   ; @mdp5_cfg
l_.str.1:                               ; @.str.1
	.asciz	"unexpected MDP minor revision: v%d.%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"MDP5: %s hw config selected"

.subsections_via_symbols
