	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max_tce_size
_max_tce_size:                          ## @max_tce_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$528, %rsp                      ## imm = 0x210
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	callq	_ofw_bus_get_node
	leaq	L_.str(%rip), %rsi
	leaq	-528(%rbp), %rdx
	movl	%eax, %edi
	movl	$512, %ecx                      ## imm = 0x200
	callq	_OF_getencprop
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$7, %eax
	jg	LBB0_2
## %bb.1:
	movq	_OPAL_PCI_TCE_DEFAULT_SEG_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_2:
	shrl	$3, %eax
	decl	%eax
	movb	-528(%rbp,%rax,8), %cl
	movl	$1, %eax
	shlq	%cl, %rax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibm,supported-tce-sizes"

	.comm	_OPAL_PCI_TCE_DEFAULT_SEG_SIZE,8,3 ## @OPAL_PCI_TCE_DEFAULT_SEG_SIZE
	.no_dead_strip	_max_tce_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max_tce_size
_max_tce_size:                          ; @max_tce_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #528
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_ofw_bus_get_node
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x19, sp, #8
	add	x2, sp, #8
	mov	w3, #512
	bl	_OF_getencprop
	cmp	w0, #7
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _OPAL_PCI_TCE_DEFAULT_SEG_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPAL_PCI_TCE_DEFAULT_SEG_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	b	LBB0_3
LBB0_2:
	lsr	w8, w0, #3
	sub	w8, w8, #1
	ldr	x8, [x19, w8, uxtw #3]
	mov	w9, #1
	lsl	x0, x9, x8
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibm,supported-tce-sizes"

	.comm	_OPAL_PCI_TCE_DEFAULT_SEG_SIZE,8,3 ; @OPAL_PCI_TCE_DEFAULT_SEG_SIZE
	.no_dead_strip	_max_tce_size
.subsections_via_symbols
