	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_get_asic_type
_ocrdma_get_asic_type:                  ## @ocrdma_get_asic_type
	.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	%rdi, %rbx
	cmpl	$15, 4(%rdi)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movq	_OCRDMA_SLI_ASIC_ID_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_pci_read_config_dword
LBB0_3:
	movq	_OCRDMA_SLI_ASIC_GEN_NUM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movq	_OCRDMA_SLI_ASIC_GEN_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_SLI_ASIC_ID_OFFSET,4,2  ## @OCRDMA_SLI_ASIC_ID_OFFSET
	.comm	_OCRDMA_SLI_ASIC_GEN_NUM_MASK,4,2 ## @OCRDMA_SLI_ASIC_GEN_NUM_MASK
	.comm	_OCRDMA_SLI_ASIC_GEN_NUM_SHIFT,4,2 ## @OCRDMA_SLI_ASIC_GEN_NUM_SHIFT
	.no_dead_strip	_ocrdma_get_asic_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_get_asic_type
_ocrdma_get_asic_type:                  ; @ocrdma_get_asic_type
	.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
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #15
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _OCRDMA_SLI_ASIC_ID_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_SLI_ASIC_ID_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_pci_read_config_dword
LBB0_3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _OCRDMA_SLI_ASIC_GEN_NUM_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCRDMA_SLI_ASIC_GEN_NUM_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _OCRDMA_SLI_ASIC_GEN_NUM_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_SLI_ASIC_GEN_NUM_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_SLI_ASIC_ID_OFFSET,4,2  ; @OCRDMA_SLI_ASIC_ID_OFFSET
	.comm	_OCRDMA_SLI_ASIC_GEN_NUM_MASK,4,2 ; @OCRDMA_SLI_ASIC_GEN_NUM_MASK
	.comm	_OCRDMA_SLI_ASIC_GEN_NUM_SHIFT,4,2 ; @OCRDMA_SLI_ASIC_GEN_NUM_SHIFT
	.no_dead_strip	_ocrdma_get_asic_type
.subsections_via_symbols
