	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chip_to_opa_pstate             ## -- Begin function chip_to_opa_pstate
	.p2align	4, 0x90
_chip_to_opa_pstate:                    ## @chip_to_opa_pstate
	.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, %eax
	andl	$240, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	movq	_IB_PORTPHYSSTATE_POLLING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dd_dev_err
	movq	_IB_PORTPHYSSTATE_DISABLED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected chip physical state of 0x%x\n"

	.comm	_IB_PORTPHYSSTATE_DISABLED,4,2  ## @IB_PORTPHYSSTATE_DISABLED
	.comm	_OPA_PORTPHYSSTATE_OFFLINE,4,2  ## @OPA_PORTPHYSSTATE_OFFLINE
	.comm	_IB_PORTPHYSSTATE_POLLING,4,2   ## @IB_PORTPHYSSTATE_POLLING
	.comm	_IB_PORTPHYSSTATE_TRAINING,4,2  ## @IB_PORTPHYSSTATE_TRAINING
	.comm	_IB_PORTPHYSSTATE_LINKUP,4,2    ## @IB_PORTPHYSSTATE_LINKUP
	.comm	_IB_PORTPHYSSTATE_PHY_TEST,4,2  ## @IB_PORTPHYSSTATE_PHY_TEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chip_to_opa_pstate             ; -- Begin function chip_to_opa_pstate
	.p2align	2
_chip_to_opa_pstate:                    ; @chip_to_opa_pstate
	.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
	and	w8, w1, #0xf0
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IB_PORTPHYSSTATE_POLLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PORTPHYSSTATE_POLLING@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x2, x1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dd_dev_err
Lloh4:
	adrp	x8, _IB_PORTPHYSSTATE_DISABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_PORTPHYSSTATE_DISABLED@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected chip physical state of 0x%x\n"

	.comm	_IB_PORTPHYSSTATE_DISABLED,4,2  ; @IB_PORTPHYSSTATE_DISABLED
	.comm	_OPA_PORTPHYSSTATE_OFFLINE,4,2  ; @OPA_PORTPHYSSTATE_OFFLINE
	.comm	_IB_PORTPHYSSTATE_POLLING,4,2   ; @IB_PORTPHYSSTATE_POLLING
	.comm	_IB_PORTPHYSSTATE_TRAINING,4,2  ; @IB_PORTPHYSSTATE_TRAINING
	.comm	_IB_PORTPHYSSTATE_LINKUP,4,2    ; @IB_PORTPHYSSTATE_LINKUP
	.comm	_IB_PORTPHYSSTATE_PHY_TEST,4,2  ; @IB_PORTPHYSSTATE_PHY_TEST
.subsections_via_symbols
