	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_register_subdev
_smiapp_register_subdev:                ## @smiapp_register_subdev
	.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
	movl	%r9d, %r15d
	movl	%r8d, %ebx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	xorl	%ecx, %ecx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_8
## %bb.1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movl	%r15d, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_media_create_pad_link
	testl	%eax, %eax
	movl	$0, %ecx
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	%r14, %rdi
	callq	_v4l2_device_unregister_subdev
	movl	%ebx, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"media_entity_pads_init failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"v4l2_device_register_subdev failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"media_create_pad_link failed\n"

	.no_dead_strip	_smiapp_register_subdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_register_subdev
_smiapp_register_subdev:                ; @smiapp_register_subdev
	.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	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x19, x1
	mov	x26, x0
	ldr	x0, [x0]
	bl	_v4l2_get_subdevdata
	cbz	x24, LBB0_3
; %bb.1:
	mov	x20, x0
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	bl	_media_entity_pads_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	w21, #0
	b	LBB0_7
LBB0_4:
	ldr	x8, [x26]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_v4l2_device_register_subdev
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_media_create_pad_link
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.9:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_v4l2_device_unregister_subdev
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"media_entity_pads_init failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"v4l2_device_register_subdev failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"media_create_pad_link failed\n"

	.no_dead_strip	_smiapp_register_subdev
.subsections_via_symbols
