	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_set_edid_phys_addr        ## -- Begin function v4l2_set_edid_phys_addr
	.p2align	4, 0x90
_v4l2_set_edid_phys_addr:               ## @v4l2_set_edid_phys_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	callq	_cec_get_edid_spa_location
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%ebx, %ecx
	sarl	$8, %ecx
	movl	%eax, %r9d
	movl	%ecx, (%r14,%r9,4)
	movzbl	%bl, %ecx
	leal	1(%rax), %edx
	movl	%ecx, (%r14,%rdx,4)
	movl	%eax, %edx
	andl	$-128, %edx
	movl	%eax, %ecx
	orl	$127, %ecx
	movl	$256, %esi                      ## imm = 0x100
	cmpl	%ecx, %edx
	jae	LBB0_10
## %bb.2:
	movl	%r9d, %r8d
	andl	$-128, %r8d
	notl	%eax
	orl	$127, %eax
	addl	%ecx, %eax
	orl	$1, %eax
	leaq	-15(%rax), %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %edi
	andl	$3, %edi
	leaq	(%r14,%r8,4), %rsi
	addq	$112, %rsi
	shlq	$5, %rbx
	andq	$-128, %rbx
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-112(%rsi,%rdx), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	-96(%rsi,%rdx), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	-80(%rsi,%rdx), %xmm1
	movdqu	-64(%rsi,%rdx), %xmm3
	movdqu	-48(%rsi,%rdx), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	-32(%rsi,%rdx), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	-16(%rsi,%rdx), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	(%rsi,%rdx), %xmm1
	paddd	%xmm2, %xmm1
	subq	$-128, %rdx
	cmpq	%rdx, %rbx
	jne	LBB0_3
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	leaq	(%r14,%r8,4), %rsi
	addq	%rsi, %rdx
	addq	$16, %rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rdx), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	decq	%rdi
	jne	LBB0_6
LBB0_7:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	leaq	(%r14,%r8,4), %rsi
	addq	$-28, %rsi
	andl	$-128, %r9d
	movl	%ecx, %edi
	subl	%r9d, %edi
	addl	$7, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rax,4), %edx
	incq	%rax
	cmpl	%eax, %edi
	jne	LBB0_8
## %bb.9:
	movl	$256, %esi                      ## imm = 0x100
	subl	%edx, %esi
	movl	%ecx, %edx
LBB0_10:
	movl	%edx, %eax
	movl	%esi, (%r14,%rax,4)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_set_edid_phys_addr        ; -- Begin function v4l2_set_edid_phys_addr
	.p2align	2
_v4l2_set_edid_phys_addr:               ; @v4l2_set_edid_phys_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	bl	_cec_get_edid_spa_location
	cbz	w0, LBB0_9
; %bb.1:
	asr	w8, w20, #8
	str	w8, [x19, w0, uxtw #2]
	and	w8, w20, #0xff
	add	w9, w0, #1
	str	w8, [x19, w9, uxtw #2]
	and	w10, w0, #0xffffff80
	orr	w8, w0, #0x7f
	cmp	w10, w8
	b.hs	LBB0_7
; %bb.2:
	mov	w9, w0
	and	x13, x9, #0xffffff80
	mvn	w10, w0
	orr	w10, w10, #0x7f
	add	w10, w8, w10
	orr	w10, w10, #0x1
	sub	x12, x10, #15
	add	x11, x13, x12
	add	x13, x19, x13, lsl #2
	add	x13, x13, #32
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_3
; %bb.4:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w12, s0
	add	x11, x19, x11, lsl #2
	and	w9, w9, #0xffffff80
	add	w9, w10, w9
	sub	w9, w9, #15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11], #4
	add	w12, w10, w12
	add	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.6:
	mov	w9, #256
	sub	w9, w9, w12
	b	LBB0_8
LBB0_7:
	mov	w9, #256
	mov	x8, x10
LBB0_8:
	str	w9, [x19, w8, uxtw #2]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
