	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_drv_probe
_sun4i_drv_probe:                       ## @sun4i_drv_probe
	.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	$0, -72(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	callq	_INIT_KFIFO
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	$1, %ebx
	leaq	-48(%rbp), %r12
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_kfifo_put
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_of_parse_phandle
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_kfifo_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	leaq	-72(%rbp), %r12
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_sun4i_drv_add_endpoints
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	%r13d, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_kfifo_get
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:
	movq	-72(%rbp), %rdx
	movq	_sun4i_drv_master_ops@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_component_master_add_with_match
	movl	%eax, %r13d
	jmp	LBB0_10
LBB0_8:
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allwinner,pipelines"

	.comm	_sun4i_drv_master_ops,4,2       ## @sun4i_drv_master_ops
	.no_dead_strip	_sun4i_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_drv_probe
_sun4i_drv_probe:                       ; @sun4i_drv_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	x20, [x0]
	bl	_INIT_KFIFO
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	mov	w21, #1
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_kfifo_put
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_of_parse_phandle
	mov	x1, x0
	add	w21, w21, #1
	cbnz	x0, LBB0_2
LBB0_3:
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_kfifo_get
	cbz	x0, LBB0_10
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [sp, #16]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	bl	_sun4i_drv_add_endpoints
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w0, w20
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_kfifo_get
	cbnz	x0, LBB0_5
; %bb.7:
	cbz	w20, LBB0_9
; %bb.8:
	ldr	x2, [sp, #24]
Lloh4:
	adrp	x1, _sun4i_drv_master_ops@GOTPAGE
Lloh5:
	ldr	x1, [x1, _sun4i_drv_master_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_master_add_with_match
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allwinner,pipelines"

	.comm	_sun4i_drv_master_ops,4,2       ; @sun4i_drv_master_ops
	.no_dead_strip	_sun4i_drv_probe
.subsections_via_symbols
