	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_states_transition_allowed
_port_states_transition_allowed:        ## @port_states_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_driver_pstate
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_driver_lstate
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_logical_transition_allowed
	movl	%eax, %r13d
	movq	_HFI_TRANSITION_DISALLOWED@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_2
## %bb.1:
	movq	_HFI_TRANSITION_UNDEFINED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_physical_transition_allowed
	movl	%eax, %r12d
	cmpl	(%r14), %eax
	je	LBB0_5
## %bb.4:
	cmpl	(%rbx), %r12d
	je	LBB0_5
## %bb.6:
	movq	_HFI_TRANSITION_IGNORED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jne	LBB0_8
## %bb.7:
	cmpl	%eax, %r12d
	je	LBB0_11
LBB0_8:
	movq	_OPA_PORTPHYSSTATE_OFFLINE@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %r15
	movq	_IB_PORTPHYSSTATE_POLLING@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorq	(%rcx), %rdx
	orq	%r15, %rdx
	je	LBB0_10
## %bb.9:
	movq	_HFI_TRANSITION_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_2:
	movq	%rbx, %rdi
	callq	_opa_lstate_name
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_opa_lstate_name
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_warn
	movl	%r13d, %r12d
	jmp	LBB0_11
LBB0_5:
	movq	%r15, %rdi
	callq	_opa_pstate_name
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_opa_pstate_name
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_warn
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI_TRANSITION_DISALLOWED,4,2  ## @HFI_TRANSITION_DISALLOWED
	.comm	_HFI_TRANSITION_UNDEFINED,4,2   ## @HFI_TRANSITION_UNDEFINED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid logical state transition %s -> %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid physical state transition %s -> %s\n"

	.comm	_HFI_TRANSITION_IGNORED,4,2     ## @HFI_TRANSITION_IGNORED
	.comm	_OPA_PORTPHYSSTATE_OFFLINE,8,3  ## @OPA_PORTPHYSSTATE_OFFLINE
	.comm	_IB_PORTPHYSSTATE_POLLING,8,3   ## @IB_PORTPHYSSTATE_POLLING
	.comm	_HFI_TRANSITION_ALLOWED,4,2     ## @HFI_TRANSITION_ALLOWED
	.no_dead_strip	_port_states_transition_allowed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_states_transition_allowed
_port_states_transition_allowed:        ; @port_states_transition_allowed
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_driver_pstate
	mov	x20, x0
	mov	x0, x21
	bl	_driver_lstate
	mov	x23, x0
	mov	x1, x22
	bl	_logical_transition_allowed
	mov	x21, x0
Lloh0:
	adrp	x24, _HFI_TRANSITION_DISALLOWED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HFI_TRANSITION_DISALLOWED@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _HFI_TRANSITION_UNDEFINED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HFI_TRANSITION_UNDEFINED@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_opa_lstate_name
	mov	x19, x0
	mov	x0, x22
	bl	_opa_lstate_name
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
	mov	x22, x21
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_physical_transition_allowed
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_opa_pstate_name
	mov	x20, x0
	mov	x0, x19
	bl	_opa_pstate_name
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_warn
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _HFI_TRANSITION_IGNORED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HFI_TRANSITION_IGNORED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w21, w8
	ccmp	w22, w8, #0, eq
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x9, _OPA_PORTPHYSSTATE_OFFLINE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OPA_PORTPHYSSTATE_OFFLINE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _IB_PORTPHYSSTATE_POLLING@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_PORTPHYSSTATE_POLLING@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x10, x19
	ccmp	x20, x9, #0, eq
Lloh17:
	adrp	x9, _HFI_TRANSITION_ALLOWED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HFI_TRANSITION_ALLOWED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	csel	w22, w8, w9, eq
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI_TRANSITION_DISALLOWED,4,2  ; @HFI_TRANSITION_DISALLOWED
	.comm	_HFI_TRANSITION_UNDEFINED,4,2   ; @HFI_TRANSITION_UNDEFINED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid logical state transition %s -> %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid physical state transition %s -> %s\n"

	.comm	_HFI_TRANSITION_IGNORED,4,2     ; @HFI_TRANSITION_IGNORED
	.comm	_OPA_PORTPHYSSTATE_OFFLINE,8,3  ; @OPA_PORTPHYSSTATE_OFFLINE
	.comm	_IB_PORTPHYSSTATE_POLLING,8,3   ; @IB_PORTPHYSSTATE_POLLING
	.comm	_HFI_TRANSITION_ALLOWED,4,2     ; @HFI_TRANSITION_ALLOWED
	.no_dead_strip	_port_states_transition_allowed
.subsections_via_symbols
