	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function physical_transition_allowed
_physical_transition_allowed:           ## @physical_transition_allowed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	movl	%edi, %esi
	movq	_IB_PORTPHYSSTATE_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jle	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_2:
	movq	_HFI_TRANSITION_UNDEFINED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_OPA_PORTPHYSSTATE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, %ecx
	jl	LBB0_1
## %bb.5:
	cmpl	%esi, %ecx
	jl	LBB0_1
## %bb.6:
	cmpl	%edx, %eax
	jg	LBB0_1
## %bb.7:
	jne	LBB0_9
## %bb.8:
	movq	_HFI_TRANSITION_ALLOWED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_IB_PORTPHYSSTATE_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, %esi
	subl	%eax, %edx
	movl	%esi, %eax
	orl	%edx, %eax
	js	LBB0_2
## %bb.10:
	movq	_physical_state_transitions@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%esi, %esi
	movl	%edx, %eax
	shlq	$2, %rax
	addq	(%rcx,%rsi,8), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORTPHYSSTATE_NOP,4,2       ## @IB_PORTPHYSSTATE_NOP
	.comm	_OPA_PORTPHYSSTATE_MAX,4,2      ## @OPA_PORTPHYSSTATE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid physical state(s) (old %d new %d)\n"

	.comm	_HFI_TRANSITION_UNDEFINED,4,2   ## @HFI_TRANSITION_UNDEFINED
	.comm	_HFI_TRANSITION_ALLOWED,4,2     ## @HFI_TRANSITION_ALLOWED
	.comm	_IB_PORTPHYSSTATE_POLLING,8,3   ## @IB_PORTPHYSSTATE_POLLING
	.comm	_physical_state_transitions,8,3 ## @physical_state_transitions
	.no_dead_strip	_physical_transition_allowed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function physical_transition_allowed
_physical_transition_allowed:           ; @physical_transition_allowed
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _IB_PORTPHYSSTATE_NOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PORTPHYSSTATE_NOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _OPA_PORTPHYSSTATE_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPA_PORTPHYSSTATE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w2
	ccmp	w9, w1, #8, ge
	ccmp	w8, w2, #0, ge
	b.le	LBB0_5
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_3:
Lloh8:
	adrp	x8, _HFI_TRANSITION_UNDEFINED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HFI_TRANSITION_UNDEFINED@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _HFI_TRANSITION_ALLOWED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HFI_TRANSITION_ALLOWED@GOTPAGEOFF]
	b	LBB0_4
LBB0_7:
Lloh12:
	adrp	x8, _IB_PORTPHYSSTATE_POLLING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_PORTPHYSSTATE_POLLING@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
	sub	w8, w1, w9
	sub	w9, w2, w9
	orr	w10, w8, w9
	tbnz	w10, #31, LBB0_3
; %bb.8:
Lloh15:
	adrp	x10, _physical_state_transitions@GOTPAGE
Lloh16:
	ldr	x10, [x10, _physical_state_transitions@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ldr	x8, [x10, w8, uxtw #3]
	add	x8, x8, w9, uxtw #2
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORTPHYSSTATE_NOP,4,2       ; @IB_PORTPHYSSTATE_NOP
	.comm	_OPA_PORTPHYSSTATE_MAX,4,2      ; @OPA_PORTPHYSSTATE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid physical state(s) (old %d new %d)\n"

	.comm	_HFI_TRANSITION_UNDEFINED,4,2   ; @HFI_TRANSITION_UNDEFINED
	.comm	_HFI_TRANSITION_ALLOWED,4,2     ; @HFI_TRANSITION_ALLOWED
	.comm	_IB_PORTPHYSSTATE_POLLING,8,3   ; @IB_PORTPHYSSTATE_POLLING
	.comm	_physical_state_transitions,8,3 ; @physical_state_transitions
	.no_dead_strip	_physical_transition_allowed
.subsections_via_symbols
