	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OF_decode_addr                 ## -- Begin function OF_decode_addr
	.p2align	4, 0x90
_OF_decode_addr:                        ## @OF_decode_addr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	leaq	-36(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-28(%rbp), %r8
	callq	_ofw_reg_to_paddr
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	-28(%rbp), %ecx
	movq	_OFW_PADDR_NOT_PCI@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_3
## %bb.2:
	movq	_bs_be_tag@GOTPCREL(%rip), %rdi
	movq	%rdi, (%rbx)
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_3:
	movq	_bs_le_tag@GOTPCREL(%rip), %rdi
	movq	%rdi, (%rbx)
	movq	_OFW_PCI_PHYS_HI_PREFETCHABLE@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_5
## %bb.4:
	movq	_BUS_SPACE_MAP_PREFETCHABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	movl	-32(%rbp), %edx
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movl	%edx, (%r15)
LBB0_7:
	movl	-36(%rbp), %esi
	movq	%r14, %r8
	callq	_bus_space_map
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OFW_PADDR_NOT_PCI,4,2          ## @OFW_PADDR_NOT_PCI
	.comm	_bs_be_tag,4,2                  ## @bs_be_tag
	.comm	_bs_le_tag,4,2                  ## @bs_le_tag
	.comm	_OFW_PCI_PHYS_HI_PREFETCHABLE,4,2 ## @OFW_PCI_PHYS_HI_PREFETCHABLE
	.comm	_BUS_SPACE_MAP_PREFETCHABLE,4,2 ## @BUS_SPACE_MAP_PREFETCHABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OF_decode_addr                 ; -- Begin function OF_decode_addr
	.p2align	2
_OF_decode_addr:                        ; @OF_decode_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	bl	_ofw_reg_to_paddr
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [sp, #4]
Lloh0:
	adrp	x9, _OFW_PADDR_NOT_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OFW_PADDR_NOT_PCI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w3, #0
Lloh3:
	adrp	x0, _bs_be_tag@GOTPAGE
Lloh4:
	ldr	x0, [x0, _bs_be_tag@GOTPAGEOFF]
	str	x0, [x21]
	ldr	w2, [sp, #8]
	cbnz	x20, LBB0_4
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x0, _bs_le_tag@GOTPAGE
Lloh6:
	ldr	x0, [x0, _bs_le_tag@GOTPAGEOFF]
	str	x0, [x21]
Lloh7:
	adrp	x9, _OFW_PCI_PHYS_HI_PREFETCHABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OFW_PCI_PHYS_HI_PREFETCHABLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _BUS_SPACE_MAP_PREFETCHABLE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BUS_SPACE_MAP_PREFETCHABLE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w3, wzr, w10, eq
	ldr	w2, [sp, #8]
	cbz	x20, LBB0_5
LBB0_4:
	str	w2, [x20]
LBB0_5:
	ldr	w1, [sp, #12]
	mov	x4, x19
	bl	_bus_space_map
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OFW_PADDR_NOT_PCI,4,2          ; @OFW_PADDR_NOT_PCI
	.comm	_bs_be_tag,4,2                  ; @bs_be_tag
	.comm	_bs_le_tag,4,2                  ; @bs_le_tag
	.comm	_OFW_PCI_PHYS_HI_PREFETCHABLE,4,2 ; @OFW_PCI_PHYS_HI_PREFETCHABLE
	.comm	_BUS_SPACE_MAP_PREFETCHABLE,4,2 ; @BUS_SPACE_MAP_PREFETCHABLE
.subsections_via_symbols
