	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __of_device_is_compatible
___of_device_is_compatible:             ## @__of_device_is_compatible
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	___of_find_property
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_of_prop_next_string
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_of_compat_cmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_of_prop_next_string
	movq	%rax, %r14
	addl	$4, %r12d
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_7:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	xorl	%r15d, %r15d
	subl	%r12d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_16
LBB0_8:
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.9:
	cmpb	$0, (%rdx)
	je	LBB0_12
## %bb.10:
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	callq	___of_node_is_type
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:
	addl	$2, %r14d
	movq	%rbx, %rdi
LBB0_12:
	testq	%r12, %r12
	je	LBB0_15
## %bb.13:
	cmpb	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movq	%r12, %rsi
	callq	_of_node_name_eq
	incl	%r14d
	testl	%eax, %eax
	cmovel	%eax, %r14d
LBB0_15:
	movl	%r14d, %r15d
	jmp	LBB0_16
LBB0_6:
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compatible"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	___of_device_is_compatible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __of_device_is_compatible
___of_device_is_compatible:             ; @__of_device_is_compatible
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	cbz	x1, LBB0_8
; %bb.1:
	ldrb	w8, [x22]
	cbz	w8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	___of_find_property
	mov	x23, x0
	mov	x1, #0
	bl	_of_prop_next_string
	cbz	x0, LBB0_15
; %bb.3:
	mov	x24, x0
	mov	w25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x22
	bl	_of_compat_cmp
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_of_prop_next_string
	mov	x24, x0
	add	w25, w25, #4
	cbnz	x0, LBB0_4
	b	LBB0_15
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	subs	w22, w8, w25
	b.eq	LBB0_16
LBB0_8:
	cbz	x21, LBB0_12
; %bb.9:
	ldrb	w8, [x21]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	bl	___of_node_is_type
	cbz	w0, LBB0_15
; %bb.11:
	add	w22, w22, #2
LBB0_12:
	cbz	x19, LBB0_16
; %bb.13:
	ldrb	w8, [x19]
	cbz	w8, LBB0_16
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_of_node_name_eq
	cmp	w0, #0
	csinc	w22, wzr, w22, eq
	b	LBB0_16
LBB0_15:
	mov	w22, #0
LBB0_16:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compatible"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	___of_device_is_compatible
.subsections_via_symbols
