	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flite_hw_set_source_format     ## -- Begin function flite_hw_set_source_format
	.p2align	4, 0x90
_flite_hw_set_source_format:            ## @flite_hw_set_source_format
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rsi), %rax
	movl	(%rax), %r13d
	movq	_src_pixfmt_map@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	(%r15), %r8
	movslq	%eax, %rbx
	movl	$1, %eax
	subl	%ebx, %eax
	leaq	(%r8,%rbx,8), %rdx
	addq	$-8, %rdx
	shlq	$32, %rbx
	xorl	%esi, %esi
	movabsq	$-4294967296, %rdi              ## imm = 0xFFFFFFFF00000000
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx,%rsi,8), %rcx
	addq	%rdi, %rbx
	decq	%rsi
	cmpl	%r13d, (%rcx)
	jne	LBB0_1
## %bb.3:
	sarq	$32, %rbx
	jmp	LBB0_7
LBB0_4:
	movq	(%r8), %rax
	movl	(%rax), %edx
	cmpl	%r13d, %edx
	je	LBB0_6
## %bb.5:
	leaq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_err
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	_FLITE_REG_CIGCTRL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_FLITE_REG_CIGCTRL_FMT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	orl	8(%rax), %edi
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_FLITE_REG_CISRCSIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_FLITE_REG_CISRCSIZE_ORDER422_MASK@GOTPCREL(%rip), %rcx
	movq	_FLITE_REG_CISRCSIZE_SIZE_CAM_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %edi
	shll	$16, %edi
	orl	4(%r14), %edi
	orl	%edx, %edi
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	orl	4(%rax), %edi
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_src_pixfmt_map,8,3             ## @src_pixfmt_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported pixel code, falling back to %#08x\n"

	.comm	_FLITE_REG_CIGCTRL,8,3          ## @FLITE_REG_CIGCTRL
	.comm	_FLITE_REG_CIGCTRL_FMT_MASK,4,2 ## @FLITE_REG_CIGCTRL_FMT_MASK
	.comm	_FLITE_REG_CISRCSIZE,8,3        ## @FLITE_REG_CISRCSIZE
	.comm	_FLITE_REG_CISRCSIZE_ORDER422_MASK,4,2 ## @FLITE_REG_CISRCSIZE_ORDER422_MASK
	.comm	_FLITE_REG_CISRCSIZE_SIZE_CAM_MASK,4,2 ## @FLITE_REG_CISRCSIZE_SIZE_CAM_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flite_hw_set_source_format     ; -- Begin function flite_hw_set_source_format
	.p2align	2
_flite_hw_set_source_format:            ; @flite_hw_set_source_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	w23, [x8]
Lloh0:
	adrp	x21, _src_pixfmt_map@GOTPAGE
Lloh1:
	ldr	x21, [x21, _src_pixfmt_map@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21]
	sxtw	x22, w0
	sub	w9, w0, #1
	mvn	x10, x9
	add	x24, x10, x22
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w9, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x10, x8, x22, lsl #3
	ldur	x10, [x10, #-8]
	ldr	w10, [x10]
	sub	w9, w9, #1
	sub	x22, x22, #1
	cmp	w10, w23
	b.ne	LBB0_1
	b	LBB0_6
LBB0_3:
	ldr	x8, [x8]
	ldr	w2, [x8]
	cmp	w2, w23
	b.eq	LBB0_5
; %bb.4:
	add	x0, x19, #8
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
LBB0_5:
	mov	x22, x24
LBB0_6:
	ldr	x8, [x19]
Lloh4:
	adrp	x23, _FLITE_REG_CIGCTRL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FLITE_REG_CIGCTRL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _FLITE_REG_CIGCTRL_FMT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLITE_REG_CIGCTRL_FMT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x21]
	sbfiz	x22, x22, #3, #32
	ldr	x9, [x9, x22]
	bic	w8, w0, w8
	ldr	w9, [x9, #8]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh9:
	adrp	x23, _FLITE_REG_CISRCSIZE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FLITE_REG_CISRCSIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x8, _FLITE_REG_CISRCSIZE_ORDER422_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLITE_REG_CISRCSIZE_ORDER422_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x9, _FLITE_REG_CISRCSIZE_SIZE_CAM_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FLITE_REG_CISRCSIZE_SIZE_CAM_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldp	w9, w10, [x20]
	orr	w9, w10, w9, lsl #16
	orr	w8, w9, w8
	ldr	x9, [x21]
	ldr	x9, [x9, x22]
	ldr	w9, [x9, #4]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_src_pixfmt_map,8,3             ; @src_pixfmt_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported pixel code, falling back to %#08x\n"

	.comm	_FLITE_REG_CIGCTRL,8,3          ; @FLITE_REG_CIGCTRL
	.comm	_FLITE_REG_CIGCTRL_FMT_MASK,4,2 ; @FLITE_REG_CIGCTRL_FMT_MASK
	.comm	_FLITE_REG_CISRCSIZE,8,3        ; @FLITE_REG_CISRCSIZE
	.comm	_FLITE_REG_CISRCSIZE_ORDER422_MASK,4,2 ; @FLITE_REG_CISRCSIZE_ORDER422_MASK
	.comm	_FLITE_REG_CISRCSIZE_SIZE_CAM_MASK,4,2 ; @FLITE_REG_CISRCSIZE_SIZE_CAM_MASK
.subsections_via_symbols
