	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_phys_addr_validate        ## -- Begin function v4l2_phys_addr_validate
	.p2align	4, 0x90
_v4l2_phys_addr_validate:               ## @v4l2_phys_addr_validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	%edi, (%rsi)
LBB0_2:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	$0, (%rdx)
LBB0_4:
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	je	LBB0_19
## %bb.5:
	xorl	%ecx, %ecx
	movb	$1, %r8b
	testb	$15, %dil
	jne	LBB0_8
## %bb.7:
	movl	$4, %ecx
	testb	$-16, %dil
	je	LBB0_20
LBB0_8:
	movb	$1, %r9b
	testq	%rsi, %rsi
	je	LBB0_10
LBB0_9:
	movl	$65520, %eax                    ## imm = 0xFFF0
	shll	%cl, %eax
	andl	%edi, %eax
	movl	%eax, (%rsi)
LBB0_10:
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movl	%edi, %eax
	sarl	%cl, %eax
	andl	$15, %eax
	movl	%eax, (%rdx)
LBB0_12:
	xorl	%eax, %eax
	testb	%r8b, %r8b
	je	LBB0_19
## %bb.13:
	movl	%edi, %edx
	shrl	%cl, %edx
	testb	$-16, %dl
	je	LBB0_18
## %bb.14:
	testb	%r9b, %r9b
	je	LBB0_19
## %bb.15:
	movl	%edi, %edx
	shrl	%cl, %edx
	testl	$3840, %edx                     ## imm = 0xF00
	je	LBB0_18
## %bb.16:
	testb	$15, %dil
	je	LBB0_19
## %bb.17:
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edi
	testl	$61440, %edi                    ## imm = 0xF000
	jne	LBB0_19
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	popq	%rbp
	retq
LBB0_20:
	xorl	%eax, %eax
	testl	$3840, %edi                     ## imm = 0xF00
	je	LBB0_22
## %bb.21:
	movl	$8, %ecx
	jmp	LBB0_24
LBB0_22:
	testl	$61440, %edi                    ## imm = 0xF000
	je	LBB0_19
## %bb.23:
	movl	$12, %ecx
	xorl	%r8d, %r8d
LBB0_24:
	xorl	%r9d, %r9d
	testq	%rsi, %rsi
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ## @CEC_PHYS_ADDR_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_phys_addr_validate        ; -- Begin function v4l2_phys_addr_validate
	.p2align	2
_v4l2_phys_addr_validate:               ; @v4l2_phys_addr_validate
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	str	w0, [x1]
LBB0_2:
	cbz	x2, LBB0_4
; %bb.3:
	str	wzr, [x2]
LBB0_4:
Lloh0:
	adrp	x8, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_25
; %bb.5:
	ands	w8, w0, #0xf
	b.eq	LBB0_7
; %bb.6:
	mov	w9, #0
	b	LBB0_9
LBB0_7:
	tst	w0, #0xf0
	b.eq	LBB0_21
; %bb.8:
	mov	w9, #4
LBB0_9:
	mov	w11, #1
	mov	w10, #1
LBB0_10:
	cbz	x1, LBB0_12
; %bb.11:
	mov	w12, #65520
	lsl	w12, w12, w9
	and	w12, w12, w0
	str	w12, [x1]
LBB0_12:
	cbz	x2, LBB0_14
; %bb.13:
	asr	w12, w0, w9
	and	w12, w12, #0xf
	str	w12, [x2]
LBB0_14:
	cbz	w11, LBB0_25
; %bb.15:
	lsr	w9, w0, w9
	tst	w9, #0xf0
	b.eq	LBB0_20
; %bb.16:
	cbz	w10, LBB0_25
; %bb.17:
	tst	w9, #0xf00
	b.eq	LBB0_20
; %bb.18:
	cbz	w8, LBB0_25
; %bb.19:
	tst	w9, #0xf000
	b.ne	LBB0_25
LBB0_20:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_21:
	tst	w0, #0xf00
	b.eq	LBB0_23
; %bb.22:
	mov	w10, #0
	mov	w9, #8
	mov	w11, #1
	b	LBB0_10
LBB0_23:
	tst	w0, #0xf000
	b.eq	LBB0_25
; %bb.24:
	mov	w11, #0
	mov	w10, #0
	mov	w9, #12
	b	LBB0_10
LBB0_25:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ; @CEC_PHYS_ADDR_INVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
