	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_drm_match_add
_rockchip_drm_match_add:                ## @rockchip_drm_match_add
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	_num_rockchip_sub_drivers@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	movq	_DL_FLAG_STATELESS@GOTPCREL(%rip), %r13
	movq	_compare_dev@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r15
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_num_rockchip_sub_drivers@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_6
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_rockchip_sub_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rsi
	xorl	%edi, %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_platform_find_device_by_driver
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_put_device
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_device_link_add
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_component_match_add
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_platform_find_device_by_driver
	movq	%r15, %r12
	movq	%r14, %r15
	movq	%r13, %r14
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_put_device
	movq	%r13, %rbx
	testq	%r13, %r13
	movq	%r14, %r13
	movq	%r15, %r14
	movq	%r12, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi
	jmp	LBB0_7
LBB0_1:
	xorl	%edi, %edi
LBB0_7:
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_rockchip_drm_match_remove
LBB0_9:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_rockchip_sub_drivers,4,2   ## @num_rockchip_sub_drivers
	.comm	_rockchip_sub_drivers,8,3       ## @rockchip_sub_drivers
	.comm	_DL_FLAG_STATELESS,4,2          ## @DL_FLAG_STATELESS
	.comm	_compare_dev,4,2                ## @compare_dev
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_rockchip_drm_match_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_drm_match_add
_rockchip_drm_match_add:                ; @rockchip_drm_match_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x23, _num_rockchip_sub_drivers@GOTPAGE
Lloh1:
	ldr	x23, [x23, _num_rockchip_sub_drivers@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x25, _rockchip_sub_drivers@GOTPAGE
Lloh3:
	ldr	x25, [x25, _rockchip_sub_drivers@GOTPAGEOFF]
Lloh4:
	adrp	x26, _DL_FLAG_STATELESS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DL_FLAG_STATELESS@GOTPAGEOFF]
Lloh6:
	adrp	x27, _compare_dev@GOTPAGE
Lloh7:
	ldr	x27, [x27, _compare_dev@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [x25]
	ldr	x20, [x8, x24, lsl #3]
	mov	x0, #0
	mov	x1, x20
	bl	_platform_find_device_by_driver
	mov	x21, x0
	mov	x0, #0
	bl	_put_device
	cbz	x21, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x21
	bl	_device_link_add
	ldr	w2, [x27]
	add	x1, sp, #8
	mov	x0, x19
	mov	x3, x21
	bl	_component_match_add
	mov	x0, x21
	mov	x1, x20
	bl	_platform_find_device_by_driver
	mov	x22, x0
	mov	x0, x21
	bl	_put_device
	mov	x21, x22
	cbnz	x22, LBB0_4
	b	LBB0_2
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_rockchip_drm_match_remove
LBB0_7:
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x0, #0
	bl	_IS_ERR
	cbnz	x0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_num_rockchip_sub_drivers,4,2   ; @num_rockchip_sub_drivers
	.comm	_rockchip_sub_drivers,8,3       ; @rockchip_sub_drivers
	.comm	_DL_FLAG_STATELESS,4,2          ; @DL_FLAG_STATELESS
	.comm	_compare_dev,4,2                ; @compare_dev
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_rockchip_drm_match_add
.subsections_via_symbols
