	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_enum_mbus_code
_smiapp_enum_mbus_code:                 ## @smiapp_enum_mbus_code
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_smiapp_sensor
	movq	%rax, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	(%rbx), %edx
	movl	(%r15), %ecx
	movl	4(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_dev_err
	cmpq	%rbx, 16(%r13)
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %eax
	movq	_SMIAPP_PAD_SRC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	movq	_smiapp_csi_data_formats@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	$-1, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	btl	%r12d, %eax
	adcl	$0, %r14d
	cmpl	4(%r15), %r14d
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	incq	%r12
	cmpl	%eax, %r12d
	jb	LBB0_7
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_4:
	cmpl	$0, 4(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_11
## %bb.5:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	xorl	%r12d, %r12d
LBB0_11:
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_8:
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %r8d
	movl	%r8d, 8(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_dev_err
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subdev %s, pad %d, index %d\n"

	.comm	_SMIAPP_PAD_SRC,4,2             ## @SMIAPP_PAD_SRC
	.comm	_smiapp_csi_data_formats,8,3    ## @smiapp_csi_data_formats
L_.str.1:                               ## @.str.1
	.asciz	"found index %d, i %d, code %x\n"

	.no_dead_strip	_smiapp_enum_mbus_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_enum_mbus_code
_smiapp_enum_mbus_code:                 ; @smiapp_enum_mbus_code
	.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	x24, x0
	bl	_v4l2_get_subdevdata
	mov	x22, x0
	mov	x0, x24
	bl	_to_smiapp_sensor
	mov	x23, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w2, [x24]
	ldp	w3, w4, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	x8, [x23, #16]
	cmp	x8, x24
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _SMIAPP_PAD_SRC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SMIAPP_PAD_SRC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
Lloh8:
	adrp	x26, _smiapp_csi_data_formats@GOTPAGE
Lloh9:
	ldr	x26, [x26, _smiapp_csi_data_formats@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_8
; %bb.3:
	mov	x24, #0
	mov	w25, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	lsr	w8, w8, w24
	and	w8, w8, #0x1
	ldr	w9, [x20, #4]
	add	w25, w8, w25
	cmp	w25, w9
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	add	x24, x24, #1
	cmp	w24, w0
	b.lo	LBB0_4
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w21, #0
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	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_9:
	ldr	x8, [x26]
	ldr	w4, [x8, x24, lsl #2]
	str	w4, [x20, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	mov	x3, x24
	bl	_dev_err
	mov	w21, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subdev %s, pad %d, index %d\n"

	.comm	_SMIAPP_PAD_SRC,4,2             ; @SMIAPP_PAD_SRC
	.comm	_smiapp_csi_data_formats,8,3    ; @smiapp_csi_data_formats
l_.str.1:                               ; @.str.1
	.asciz	"found index %d, i %d, code %x\n"

	.no_dead_strip	_smiapp_enum_mbus_code
.subsections_via_symbols
