	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_set_pixfmt
_mt9m111_set_pixfmt:                    ## @mt9m111_set_pixfmt
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	leal	-128(%rbx), %ecx
	cmpl	$11, %ecx
	ja	LBB0_19
## %bb.1:
	movq	_MT9M111_OUTFMT_PROCESSED_BAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MT9M111_OUTFMT_BYPASS_IFP@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_MT9M111_OUTFMT_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MT9M111_OUTFMT_RGB565@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	_MT9M111_OUTFMT_RGB555@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	movq	_MT9M111_OUTFMT_RGB444x@GOTPCREL(%rip), %rsi
	movq	_MT9M111_OUTFMT_RGBx444@GOTPCREL(%rip), %r10
	movq	_MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r9d
	xorl	%r15d, %r15d
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	%r9d, %r15d
	orl	%edx, %r15d
	jmp	LBB0_14
LBB0_3:
	movl	%edx, %r15d
	jmp	LBB0_14
LBB0_4:
	movl	%r9d, %r15d
	jmp	LBB0_14
LBB0_5:
	movl	%eax, %r15d
	orl	%r8d, %r15d
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %r15d
	orl	%r11d, %r15d
	jmp	LBB0_14
LBB0_7:
	movl	%ebx, %r15d
	orl	%eax, %r15d
	orl	%edx, %r15d
	jmp	LBB0_14
LBB0_8:
	movl	%ebx, %r15d
	orl	%eax, %r15d
	jmp	LBB0_14
LBB0_9:
	movl	%edx, %r15d
	orl	%eax, %r15d
	orl	%r13d, %r15d
	jmp	LBB0_14
LBB0_10:
	movl	%r13d, %r15d
	orl	%eax, %r15d
	jmp	LBB0_14
LBB0_11:
	movl	%ebx, %r15d
	orl	%eax, %r15d
	orl	%edx, %r15d
	jmp	LBB0_13
LBB0_12:
	movl	%ebx, %r15d
	orl	%eax, %r15d
LBB0_13:
	orl	%r9d, %r15d
LBB0_14:
	movl	(%rsi), %esi
	movl	(%r10), %edi
	xorl	%ecx, %ecx
	cmpq	$0, (%r12)
	jne	LBB0_16
## %bb.15:
	movq	_MT9M111_OUTFMT_INV_PIX_CLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	orl	%eax, %ebx
	orl	%r8d, %ebx
	orl	%r11d, %ebx
	orl	%r13d, %ebx
	orl	%esi, %ebx
	orl	%edi, %ebx
	orl	%edx, %ebx
	orl	%r9d, %ebx
	orl	%ecx, %ebx
	movq	_context_a@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_mt9m111_reg_mask
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_context_b@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9m111_reg_mask               ## TAILCALL
LBB0_19:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_MT9M111_OUTFMT_PROCESSED_BAYER,4,2 ## @MT9M111_OUTFMT_PROCESSED_BAYER
	.comm	_MT9M111_OUTFMT_BYPASS_IFP,4,2  ## @MT9M111_OUTFMT_BYPASS_IFP
	.comm	_MT9M111_OUTFMT_RGB,4,2         ## @MT9M111_OUTFMT_RGB
	.comm	_MT9M111_OUTFMT_RGB565,4,2      ## @MT9M111_OUTFMT_RGB565
	.comm	_MT9M111_OUTFMT_RGB555,4,2      ## @MT9M111_OUTFMT_RGB555
	.comm	_MT9M111_OUTFMT_RGB444x,4,2     ## @MT9M111_OUTFMT_RGB444x
	.comm	_MT9M111_OUTFMT_RGBx444,4,2     ## @MT9M111_OUTFMT_RGBx444
	.comm	_MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN,4,2 ## @MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN
	.comm	_MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B,4,2 ## @MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pixel format not handled: %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT9M111_OUTFMT_INV_PIX_CLOCK,4,2 ## @MT9M111_OUTFMT_INV_PIX_CLOCK
	.comm	_context_a,4,2                  ## @context_a
	.comm	_context_b,4,2                  ## @context_b
	.no_dead_strip	_mt9m111_set_pixfmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_set_pixfmt
_mt9m111_set_pixfmt:                    ; @mt9m111_set_pixfmt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
	add	x0, x0, #8
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	sub	w17, w20, #128
	cmp	w17, #11
	b.hi	LBB0_17
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x8, _MT9M111_OUTFMT_PROCESSED_BAYER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9M111_OUTFMT_PROCESSED_BAYER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MT9M111_OUTFMT_BYPASS_IFP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT9M111_OUTFMT_BYPASS_IFP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MT9M111_OUTFMT_RGB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MT9M111_OUTFMT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MT9M111_OUTFMT_RGB565@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MT9M111_OUTFMT_RGB565@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x11]
Lloh12:
	adrp	x11, _MT9M111_OUTFMT_RGB555@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MT9M111_OUTFMT_RGB555@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x13, _MT9M111_OUTFMT_RGB444x@GOTPAGE
Lloh16:
	ldr	x13, [x13, _MT9M111_OUTFMT_RGB444x@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
Lloh18:
	adrp	x14, _MT9M111_OUTFMT_RGBx444@GOTPAGE
Lloh19:
	ldr	x14, [x14, _MT9M111_OUTFMT_RGBx444@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
Lloh21:
	adrp	x15, _MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN@GOTPAGE
Lloh22:
	ldr	x15, [x15, _MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN@GOTPAGEOFF]
Lloh23:
	ldr	w15, [x15]
Lloh24:
	adrp	x16, _MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B@GOTPAGE
Lloh25:
	ldr	x16, [x16, _MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B@GOTPAGEOFF]
Lloh26:
	adrp	x0, lJTI0_0@PAGE
Lloh27:
	add	x0, x0, lJTI0_0@PAGEOFF
Lloh28:
	ldr	w16, [x16]
	adr	x1, LBB0_2
	ldrb	w2, [x0, x17]
	add	x1, x1, x2, lsl #2
	br	x1
LBB0_2:
	orr	w20, w16, w15
	b	LBB0_14
LBB0_3:
	mov	x20, x15
	b	LBB0_14
LBB0_4:
	mov	x20, x16
	b	LBB0_14
LBB0_5:
	orr	w20, w10, w8
	b	LBB0_14
LBB0_6:
	orr	w20, w10, w9
	b	LBB0_14
LBB0_7:
	orr	w17, w12, w10
	orr	w20, w17, w15
	b	LBB0_14
LBB0_8:
	orr	w20, w12, w10
	b	LBB0_14
LBB0_9:
	orr	w17, w15, w10
	orr	w20, w17, w11
	b	LBB0_14
LBB0_10:
	orr	w20, w11, w10
	b	LBB0_14
LBB0_11:
	orr	w17, w12, w10
	orr	w17, w17, w15
	b	LBB0_13
LBB0_12:
	orr	w17, w12, w10
LBB0_13:
	orr	w20, w17, w16
LBB0_14:
	ldr	x17, [x21]
Lloh29:
	adrp	x0, _MT9M111_OUTFMT_INV_PIX_CLOCK@GOTPAGE
Lloh30:
	ldr	x0, [x0, _MT9M111_OUTFMT_INV_PIX_CLOCK@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x0]
	cmp	x17, #0
	csel	w17, w0, wzr, eq
	orr	w10, w12, w10
	orr	w8, w10, w8
	orr	w8, w8, w9
	orr	w8, w8, w11
	orr	w8, w8, w13
	orr	w8, w8, w14
	orr	w8, w8, w15
	orr	w8, w8, w16
	orr	w21, w8, w17
Lloh32:
	adrp	x8, _context_a@GOTPAGE
Lloh33:
	ldr	x8, [x8, _context_a@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_mt9m111_reg_mask
	cbz	w0, LBB0_16
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh35:
	adrp	x8, _context_b@GOTPAGE
Lloh36:
	ldr	x8, [x8, _context_b@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mt9m111_reg_mask
LBB0_17:
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_MT9M111_OUTFMT_PROCESSED_BAYER,4,2 ; @MT9M111_OUTFMT_PROCESSED_BAYER
	.comm	_MT9M111_OUTFMT_BYPASS_IFP,4,2  ; @MT9M111_OUTFMT_BYPASS_IFP
	.comm	_MT9M111_OUTFMT_RGB,4,2         ; @MT9M111_OUTFMT_RGB
	.comm	_MT9M111_OUTFMT_RGB565,4,2      ; @MT9M111_OUTFMT_RGB565
	.comm	_MT9M111_OUTFMT_RGB555,4,2      ; @MT9M111_OUTFMT_RGB555
	.comm	_MT9M111_OUTFMT_RGB444x,4,2     ; @MT9M111_OUTFMT_RGB444x
	.comm	_MT9M111_OUTFMT_RGBx444,4,2     ; @MT9M111_OUTFMT_RGBx444
	.comm	_MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN,4,2 ; @MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN
	.comm	_MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B,4,2 ; @MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pixel format not handled: %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT9M111_OUTFMT_INV_PIX_CLOCK,4,2 ; @MT9M111_OUTFMT_INV_PIX_CLOCK
	.comm	_context_a,4,2                  ; @context_a
	.comm	_context_b,4,2                  ; @context_b
	.no_dead_strip	_mt9m111_set_pixfmt
.subsections_via_symbols
