	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camif_create_media_links
_camif_create_media_links:              ## @camif_create_media_links
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	leaq	8(%rbx), %r14
	movq	_CAMIF_SD_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MEDIA_LNK_FL_IMMUTABLE@GOTPCREL(%rip), %rax
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_media_create_pad_link
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_CAMIF_SD_PADS_NUM@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	movl	$0, %eax
	jl	LBB0_5
## %bb.2:
	movl	$2, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	addq	%r12, %rdx
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MEDIA_LNK_FL_IMMUTABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	leal	-1(%r15), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_media_create_pad_link
	movslq	(%r13), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	addq	$4, %r12
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMIF_SD_PAD_SINK,4,2          ## @CAMIF_SD_PAD_SINK
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ## @MEDIA_LNK_FL_IMMUTABLE
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_CAMIF_SD_PADS_NUM,4,2          ## @CAMIF_SD_PADS_NUM
	.no_dead_strip	_camif_create_media_links
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camif_create_media_links
_camif_create_media_links:              ; @camif_create_media_links
	.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	x19, x0
	ldr	x0, [x0, #16]
	add	x20, x19, #8
Lloh0:
	adrp	x8, _CAMIF_SD_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAMIF_SD_PAD_SINK@GOTPAGEOFF]
Lloh2:
	adrp	x21, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	w8, [x21]
Lloh5:
	adrp	x22, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w4, w9, w8
	mov	w1, #0
	mov	x2, x20
	bl	_media_create_pad_link
	cbnz	w0, LBB0_5
; %bb.1:
Lloh7:
	adrp	x23, _CAMIF_SD_PADS_NUM@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CAMIF_SD_PADS_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	w25, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x2, x8, x24
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w4, w9, w8
	sub	w1, w25, #1
	mov	x0, x20
	mov	w3, #0
	bl	_media_create_pad_link
	ldrsw	x8, [x23]
	cmp	x25, x8
	add	x25, x25, #1
	add	x24, x24, #4
	ccmp	w0, #0, #0, lt
	b.eq	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMIF_SD_PAD_SINK,4,2          ; @CAMIF_SD_PAD_SINK
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ; @MEDIA_LNK_FL_IMMUTABLE
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_CAMIF_SD_PADS_NUM,4,2          ; @CAMIF_SD_PADS_NUM
	.no_dead_strip	_camif_create_media_links
.subsections_via_symbols
