	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_update_mbus_formats
_smiapp_update_mbus_formats:            ## @smiapp_update_mbus_formats
	.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	24(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	callq	_to_csi_format_idx
	movl	%eax, %r15d
	andl	$-4, %r15d
	movq	8(%rbx), %rdi
	callq	_to_csi_format_idx
	movl	%eax, %r12d
	andl	$-4, %r12d
	movq	%rbx, %rdi
	callq	_smiapp_pixel_order
	movl	%eax, %r13d
	movl	4(%rbx), %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	_smiapp_csi_data_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	leal	(%r15,%r13), %ecx
	leaq	(%rax,%rcx,4), %rcx
	movq	%rcx, 16(%rbx)
	leal	(%r12,%r13), %ecx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 8(%rbx)
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_max
	movq	%rax, %rbx
	movl	%r13d, %r15d
	addq	%r15, %rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setge	%dil
	callq	_BUG_ON
	movq	_pixel_order_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_smiapp_csi_data_formats,8,3    ## @smiapp_csi_data_formats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new pixel order %s\n"

	.comm	_pixel_order_str,8,3            ## @pixel_order_str
	.no_dead_strip	_smiapp_update_mbus_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_update_mbus_formats
_smiapp_update_mbus_formats:            ; @smiapp_update_mbus_formats
	.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, #24]
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_to_csi_format_idx
	and	w21, w0, #0xfffffffc
	ldr	x0, [x19, #8]
	bl	_to_csi_format_idx
	and	w22, w0, #0xfffffffc
	mov	x0, x19
	bl	_smiapp_pixel_order
	mov	x23, x0
	ldr	w8, [x19, #4]
	lsl	w8, w8, w0
	mov	w24, w0
	str	w8, [x19]
Lloh0:
	adrp	x25, _smiapp_csi_data_formats@GOTPAGE
Lloh1:
	ldr	x25, [x25, _smiapp_csi_data_formats@GOTPAGEOFF]
	ldr	x8, [x25]
	add	w9, w0, w21
	add	x9, x8, w9, uxtw #2
	add	w10, w22, w0
	add	x8, x8, w10, uxtw #2
	stp	x8, x9, [x19, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_max
	add	x19, x0, x24
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	x19, x0
	cset	w0, ge
	bl	_BUG_ON
Lloh2:
	adrp	x8, _pixel_order_str@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pixel_order_str@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w2, [x8, w23, uxtw #2]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	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
	b	_dev_dbg
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_smiapp_csi_data_formats,8,3    ; @smiapp_csi_data_formats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new pixel order %s\n"

	.comm	_pixel_order_str,8,3            ; @pixel_order_str
	.no_dead_strip	_smiapp_update_mbus_formats
.subsections_via_symbols
