	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_map_rid                     ## -- Begin function of_map_rid
	.p2align	4, 0x90
_of_map_rid:                            ## @of_map_rid
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movq	%r9, %rbx
	movq	%rcx, %r13
	movl	%esi, %r15d
	testq	%r8, %r8
	jne	LBB0_8
## %bb.3:
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	leaq	-48(%rbp), %rdx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.10:
	movq	%rax, %r14
	movl	%ecx, %eax
	andl	$15, %eax
	jne	LBB0_15
## %bb.11:
	movl	$-1, -52(%rbp)
	testq	%r13, %r13
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.12:
	leaq	-52(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_of_property_read_u32
	movl	-52(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	jg	LBB0_18
	jmp	LBB0_27
LBB0_13:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	movl	%r15d, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_17:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	testl	%ecx, %ecx
	jle	LBB0_27
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	-48(%rbp), %eax
	addl	$-16, %eax
	movl	%eax, -48(%rbp)
	addq	$4, %r14
	testl	%eax, %eax
	jle	LBB0_27
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_be32_to_cpup
	movl	%eax, %r15d
	leaq	4(%r14), %rdi
	callq	_be32_to_cpup
	movl	%eax, %r12d
	leaq	8(%r14), %rdi
	callq	_be32_to_cpup
	movl	%eax, %ebx
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_be32_to_cpup
	movl	%eax, %r13d
	movl	-52(%rbp), %r8d
	movl	%r8d, %eax
	notl	%eax
	testl	%eax, %r15d
	jne	LBB0_32
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	subl	%r15d, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jl	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%r15d, %eax
	addl	%r13d, %eax
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%r12d, %edi
	callq	_of_find_node_by_phandle
	testq	%rax, %rax
	je	LBB0_14
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %r12
	callq	_of_node_put
	cmpq	%rbx, (%r12)
	jne	LBB0_19
	jmp	LBB0_34
LBB0_27:
	xorl	%ebx, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	(%rax), %r8
	jmp	LBB0_30
LBB0_29:
	xorl	%r8d, %r8d
LBB0_30:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %ecx
	callq	_pr_info
	testq	%r15, %r15
	je	LBB0_7
## %bb.31:
	movl	%r14d, (%r15)
	jmp	LBB0_7
LBB0_32:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rdx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_33:
	movq	%rbx, (%rax)
LBB0_34:
	movl	-100(%rbp), %r9d                ## 4-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	addl	%r9d, %ebx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movl	%ebx, (%rax)
LBB0_36:
	movl	-52(%rbp), %ecx
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %r8d
	pushq	%rbx
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_pr_debug
	addq	$32, %rsp
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pOF: Error: Bad %s length: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%pOF: Invalid %s translation - %s-mask (0x%x) ignores rid-base (0x%x)\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"%pOF: %s, using mask %08x, rid-base: %08x, out-base: %08x, length: %08x, rid: %08x -> %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%pOF: no %s translation for rid 0x%x on %pOF\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_map_rid                     ; -- Begin function of_map_rid
	.p2align	2
_of_map_rid:                            ; @of_map_rid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_22
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_22
; %bb.2:
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x1
	mov	x21, x0
	cbnz	x4, LBB0_4
; %bb.3:
	cbz	x22, LBB0_22
LBB0_4:
	add	x2, sp, #40
	mov	x0, x21
	mov	x1, x19
	bl	_of_get_property
	cbz	x0, LBB0_19
; %bb.5:
	ldr	w8, [sp, #40]
	cbz	w8, LBB0_21
; %bb.6:
	and	w9, w8, #0xf
	cbnz	w9, LBB0_21
; %bb.7:
	mov	x25, x0
	mov	w9, #-1
	str	w9, [sp, #44]
	str	w20, [sp, #32]                  ; 4-byte Folded Spill
	cbz	x24, LBB0_9
; %bb.8:
	add	x2, sp, #44
	mov	x0, x21
	mov	x1, x24
	bl	_of_property_read_u32
	ldp	w8, w9, [sp, #40]
LBB0_9:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.10:
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	and	w20, w9, w8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #40]
	sub	w8, w8, #16
	str	w8, [sp, #40]
	add	x25, x27, #4
	cmp	w8, #0
	b.le	LBB0_25
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_be32_to_cpup
	mov	x24, x0
	add	x0, x25, #4
	bl	_be32_to_cpup
	mov	x28, x0
	add	x0, x25, #8
	bl	_be32_to_cpup
	mov	x26, x0
	add	x27, x25, #12
	mov	x0, x27
	bl	_be32_to_cpup
	ldr	w8, [sp, #44]
	bics	wzr, w24, w8
	b.ne	LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	subs	w8, w20, w24
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x0
	add	w8, w0, w24
	cmp	w20, w8
	b.ge	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x28
	bl	_of_find_node_by_phandle
	cbz	x0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x23, LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x28, x0
	ldr	x8, [x23]
	cbz	x8, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x28
	bl	_of_node_put
	ldr	x8, [x23]
	cmp	x8, x28
	b.ne	LBB0_11
	b	LBB0_33
LBB0_19:
	cbz	x23, LBB0_29
LBB0_20:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_pr_err
LBB0_22:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_25:
	cbz	x23, LBB0_27
; %bb.26:
	ldr	x4, [x23]
	b	LBB0_28
LBB0_27:
	mov	x4, #0
LBB0_28:
	ldr	w20, [sp, #32]                  ; 4-byte Folded Reload
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_pr_info
	cbz	x22, LBB0_30
LBB0_29:
	mov	w0, #0
	str	w20, [x22]
	b	LBB0_24
LBB0_30:
	mov	w0, #0
	b	LBB0_24
LBB0_31:
	stp	x8, x24, [sp, #8]
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_pr_err
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_23
LBB0_32:
	str	x28, [x23]
LBB0_33:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, w26
	cbz	x22, LBB0_35
; %bb.34:
	str	w8, [x22]
LBB0_35:
	ldr	w3, [sp, #44]
	str	w8, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x4, x24
	mov	x5, x26
	mov	x6, x25
	ldr	w7, [sp, #32]                   ; 4-byte Folded Reload
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pOF: Error: Bad %s length: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%pOF: Invalid %s translation - %s-mask (0x%x) ignores rid-base (0x%x)\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"%pOF: %s, using mask %08x, rid-base: %08x, out-base: %08x, length: %08x, rid: %08x -> %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%pOF: no %s translation for rid 0x%x on %pOF\n"

.subsections_via_symbols
