	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_s_edid                  ## -- Begin function vidioc_s_edid
	.p2align	4, 0x90
_vidioc_s_edid:                         ## @vidioc_s_edid
	.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	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %r15
	movl	24(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jae	LBB0_5
## %bb.1:
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_HDMI@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 16(%r14)
	je	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r14), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.9:
	movl	20(%r15), %eax
	cmpl	%eax, %esi
	jle	LBB0_19
## %bb.10:
	movl	%eax, 8(%r14)
	movq	_E2BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movl	$0, 16(%r15)
	movl	68(%r15), %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_s_ctrl
	movl	64(%r15), %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_s_ctrl
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)
LBB0_12:
	movq	56(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_cec_s_phys_addr
	movq	_MAX_OUTPUTS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.13:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	-44(%rbp), %edi
	incq	%r14
	movl	%r14d, %esi
	callq	_v4l2_phys_addr_for_input
	movl	%eax, %esi
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_cec_s_phys_addr
	movl	(%r13), %eax
	cmpq	%rax, %r14
	jae	LBB0_7
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rax
	movq	(%rax,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	40(%r15), %rax
	cmpl	$0, (%rax,%r14,4)
	jne	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incq	%r14
	jmp	LBB0_15
LBB0_19:
	movl	12(%r14), %edi
	shll	$7, %esi
	xorl	%edx, %edx
	callq	_cec_get_edid_phys_addr
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_v4l2_phys_addr_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.20:
	movq	%r15, %rdi
	addq	$76, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_23:
	movl	8(%r14), %edx
	movl	%edx, 16(%r15)
	movl	72(%r15), %edi
	movl	12(%r14), %esi
	shll	$7, %edx
	callq	_memcpy
	movl	24(%r15), %r8d
	testq	%r8, %r8
	je	LBB0_29
## %bb.24:
	movq	32(%r15), %rdx
	movq	(%r12), %rsi
	cmpl	$1, %r8d
	jne	LBB0_31
## %bb.25:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
LBB0_26:
	testb	$1, %r8b
	je	LBB0_30
## %bb.27:
	cmpq	%rsi, (%rdx,%rdi,8)
	jne	LBB0_30
## %bb.28:
	movq	40(%r15), %rax
	movl	(%rax,%rdi,4), %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, %r14d
	jmp	LBB0_30
LBB0_29:
	xorl	%r14d, %r14d
LBB0_30:
	movl	68(%r15), %edi
	movl	%r14d, %esi
	callq	_v4l2_ctrl_s_ctrl
	movl	64(%r15), %edi
	movl	%r14d, %esi
	callq	_v4l2_ctrl_s_ctrl
	movl	-44(%rbp), %esi
	jmp	LBB0_12
LBB0_31:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_26
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rdi,8)
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	40(%r15), %rbx
	movl	(%rbx,%rdi,4), %ebx
	leal	1(%rcx), %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %ebx
	orl	%ebx, %r14d
	movl	%eax, %ecx
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	cmpq	%rsi, 8(%rdx,%rdi,8)
	jne	LBB0_32
## %bb.36:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	40(%r15), %rax
	movl	4(%rax,%rdi,4), %eax
	leal	1(%rcx), %ebx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, %r14d
	movl	%ebx, %ecx
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDMI,8,3                       ## @HDMI
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ## @CEC_PHYS_ADDR_INVALID
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAX_OUTPUTS,4,2                ## @MAX_OUTPUTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_s_edid                  ; -- Begin function vidioc_s_edid
	.p2align	2
_vidioc_s_edid:                         ; @vidioc_s_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	bl	_video_drvdata
	mov	x19, x0
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
Lloh0:
	adrp	x21, _HDMI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HDMI@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w9, [x19, #20]
	cmp	w8, w9
	b.le	LBB0_17
; %bb.8:
	str	w9, [x20, #8]
Lloh4:
	adrp	x8, _E2BIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	str	wzr, [x19, #16]
	ldr	w0, [x19, #68]
	mov	w1, #0
	bl	_v4l2_ctrl_s_ctrl
	ldr	w0, [x19, #64]
	mov	w1, #0
	bl	_v4l2_ctrl_s_ctrl
Lloh6:
	adrp	x8, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	str	w1, [sp, #12]
LBB0_10:
	ldr	x0, [x19, #56]
	mov	w2, #0
	bl	_cec_s_phys_addr
Lloh9:
	adrp	x22, _MAX_OUTPUTS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MAX_OUTPUTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_20
; %bb.11:
	mov	x20, #0
Lloh11:
	adrp	x23, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x23]
	add	x20, x20, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	mov	w2, #0
	bl	_cec_s_phys_addr
	mov	w0, #0
	ldr	w8, [x22]
	cmp	x20, x8
	b.hs	LBB0_5
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x21, [x8, x20, lsl #3]
	cbz	x21, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x20, lsl #2]
	cbz	w8, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [sp, #12]
	add	x20, x20, #1
	mov	x1, x20
	bl	_v4l2_phys_addr_for_input
	mov	x1, x0
	b	LBB0_13
LBB0_17:
	ldr	w0, [x20, #12]
	lsl	w1, w8, #7
	mov	x2, #0
	bl	_cec_get_edid_phys_addr
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x2, #0
	bl	_v4l2_phys_addr_validate
	cbnz	w0, LBB0_5
; %bb.18:
	add	x0, x19, #76
	bl	_vb2_is_busy
	cbz	x0, LBB0_21
; %bb.19:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_20:
	mov	w0, #0
	b	LBB0_5
LBB0_21:
	ldp	w8, w1, [x20, #8]
	str	w8, [x19, #16]
	ldr	w0, [x19, #72]
	lsl	w2, w8, #7
	bl	_memcpy
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_26
; %bb.22:
	mov	x9, #0
	mov	w12, #0
	mov	w20, #0
	ldr	x10, [x19, #32]
	ldr	x11, [x21]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_27
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x9, lsl #3]
	cmp	x13, x11
	b.ne	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x13, [x19, #40]
	ldr	w13, [x13, x9, lsl #2]
	lsl	w13, w13, w12
	add	w12, w12, #1
	orr	w20, w13, w20
	b	LBB0_23
LBB0_26:
	mov	w20, #0
LBB0_27:
	ldr	w0, [x19, #68]
	mov	x1, x20
	bl	_v4l2_ctrl_s_ctrl
	ldr	w0, [x19, #64]
	mov	x1, x20
	bl	_v4l2_ctrl_s_ctrl
	ldr	w1, [sp, #12]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDMI,8,3                       ; @HDMI
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ; @CEC_PHYS_ADDR_INVALID
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAX_OUTPUTS,4,2                ; @MAX_OUTPUTS
.subsections_via_symbols
