	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cec_validate_phys_addr
_cec_validate_phys_addr:                ## @cec_validate_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
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	je	LBB0_17
## %bb.1:
	xorl	%eax, %eax
	movb	$1, %sil
	testb	$15, %dil
	je	LBB0_3
## %bb.2:
	movb	$1, %dl
	xorl	%ecx, %ecx
	testb	%sil, %sil
	je	LBB0_17
	jmp	LBB0_11
LBB0_3:
	movl	$4, %ecx
	testb	$-16, %dil
	je	LBB0_5
## %bb.4:
	movb	$1, %dl
	testb	%sil, %sil
	je	LBB0_17
	jmp	LBB0_11
LBB0_5:
	xorl	%edx, %edx
	testl	$3840, %edi                     ## imm = 0xF00
	je	LBB0_7
## %bb.6:
	movl	$8, %ecx
	testb	%sil, %sil
	jne	LBB0_11
LBB0_17:
	popq	%rbp
	retq
LBB0_7:
	testl	$61440, %edi                    ## imm = 0xF000
	je	LBB0_8
## %bb.9:
	movl	$12, %ecx
	xorl	%esi, %esi
	testb	%sil, %sil
	je	LBB0_17
LBB0_11:
	movl	%edi, %esi
	shrl	%cl, %esi
	testb	$-16, %sil
	je	LBB0_16
## %bb.12:
	testb	%dl, %dl
	je	LBB0_17
## %bb.13:
	movl	%edi, %edx
	shrl	%cl, %edx
	testl	$3840, %edx                     ## imm = 0xF00
	je	LBB0_16
## %bb.14:
	testb	$15, %dil
	je	LBB0_17
## %bb.15:
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edi
	testl	$61440, %edi                    ## imm = 0xF000
	jne	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ## @CEC_PHYS_ADDR_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cec_validate_phys_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cec_validate_phys_addr
_cec_validate_phys_addr:                ; @cec_validate_phys_addr
	.cfi_startproc
; %bb.0:
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_17
; %bb.1:
	ands	w8, w0, #0xf
	b.eq	LBB0_3
; %bb.2:
	mov	w9, #0
	b	LBB0_5
LBB0_3:
	tst	w0, #0xf0
	b.eq	LBB0_13
; %bb.4:
	mov	w9, #4
LBB0_5:
	mov	w11, #1
	mov	w10, #1
LBB0_6:
	cbz	w11, LBB0_17
; %bb.7:
	lsr	w9, w0, w9
	tst	w9, #0xf0
	b.eq	LBB0_12
; %bb.8:
	cbz	w10, LBB0_17
; %bb.9:
	tst	w9, #0xf00
	b.eq	LBB0_12
; %bb.10:
	cbz	w8, LBB0_17
; %bb.11:
	tst	w9, #0xf000
	b.ne	LBB0_17
LBB0_12:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_13:
	tst	w0, #0xf00
	b.eq	LBB0_15
; %bb.14:
	mov	w10, #0
	mov	w9, #8
	mov	w11, #1
	b	LBB0_6
LBB0_15:
	tst	w0, #0xf000
	b.eq	LBB0_17
; %bb.16:
	mov	w11, #0
	mov	w10, #0
	mov	w9, #12
	b	LBB0_6
LBB0_17:
	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
	.no_dead_strip	_cec_validate_phys_addr
.subsections_via_symbols
