	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_translate_ioport
_of_translate_ioport:                   ## @of_translate_ioport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdx
	movq	_of_get_parent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	-16(%rbp), %r8
	callq	___of_translate_address
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_logic_pio_trans_hwaddr
	movq	%rax, %rbx
	movq	-16(%rbp), %rdi
	callq	_of_node_put
	cmpq	$-1, %rbx
	jne	LBB0_5
LBB0_4:
	movq	_OF_BAD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %rdi
	callq	_pci_address_to_pio
	movq	%rax, %rbx
	cmpq	$-1, %rbx
	je	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_of_get_parent,4,2              ## @of_get_parent
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ranges"

	.comm	_OF_BAD_ADDR,8,3                ## @OF_BAD_ADDR
	.no_dead_strip	_of_translate_ioport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_translate_ioport
_of_translate_ioport:                   ; @of_translate_ioport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x2, x1
Lloh0:
	adrp	x8, _of_get_parent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _of_get_parent@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	add	x4, sp, #8
	bl	___of_translate_address
	mov	x1, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x19
	bl	_logic_pio_trans_hwaddr
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_of_node_put
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_pci_address_to_pio
	mov	x19, x0
LBB0_3:
Lloh5:
	adrp	x8, _OF_BAD_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OF_BAD_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmn	x19, #1
	csel	x0, x8, x19, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_of_get_parent,4,2              ; @of_get_parent
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ranges"

	.comm	_OF_BAD_ADDR,8,3                ; @OF_BAD_ADDR
	.no_dead_strip	_of_translate_ioport
.subsections_via_symbols
