	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl1x1sf_get_chip_info
_mxl1x1sf_get_chip_info:                ## @mxl1x1sf_get_chip_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rbx)
	jne	LBB0_12
LBB0_2:
	movq	_CHIP_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movl	-20(%rbp), %eax
	movl	%eax, (%rbx)
	movq	_TOP_CHIP_REV_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movl	-24(%rbp), %ecx
	movl	%ecx, 4(%rbx)
	movl	-20(%rbp), %eax
	cmpl	$99, %eax
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rdx, %rdi
	cmpl	$97, %eax
	leaq	L_.str(%rip), %rsi
	cmovneq	%rdi, %rsi
	cmpl	$8, %ecx
	je	LBB0_9
## %bb.5:
	cmpl	$24, %ecx
	je	LBB0_10
## %bb.6:
	cmpl	$54, %ecx
	jne	LBB0_7
## %bb.8:
	movq	_MXL111SF_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_11
LBB0_9:
	movq	_MXL111SF_V8_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	movq	_MXL111SF_V8_200@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
LBB0_11:
	movl	%eax, 8(%rbx)
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_info
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ID_REG,4,2                ## @CHIP_ID_REG
	.comm	_TOP_CHIP_REV_ID_REG,4,2        ## @TOP_CHIP_REV_ID_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MxL101SF"

L_.str.1:                               ## @.str.1
	.asciz	"MxL111SF"

L_.str.2:                               ## @.str.2
	.asciz	"UNKNOWN MxL1X1"

	.comm	_MXL111SF_V6,4,2                ## @MXL111SF_V6
L_.str.3:                               ## @.str.3
	.asciz	"v6"

	.comm	_MXL111SF_V8_100,4,2            ## @MXL111SF_V8_100
L_.str.4:                               ## @.str.4
	.asciz	"v8_100"

	.comm	_MXL111SF_V8_200,4,2            ## @MXL111SF_V8_200
L_.str.5:                               ## @.str.5
	.asciz	"v8_200"

L_.str.6:                               ## @.str.6
	.asciz	"UNKNOWN REVISION"

L_.str.7:                               ## @.str.7
	.asciz	"%s detected, %s (0x%x)"

	.no_dead_strip	_mxl1x1sf_get_chip_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl1x1sf_get_chip_info
_mxl1x1sf_get_chip_info:                ; @mxl1x1sf_get_chip_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_13
LBB0_3:
Lloh0:
	adrp	x8, _CHIP_ID_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHIP_ID_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
	mov	x20, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_13
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [x19]
Lloh3:
	adrp	x8, _TOP_CHIP_REV_ID_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOP_CHIP_REV_ID_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_mxl111sf_read_reg
	mov	x20, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_13
; %bb.5:
	ldp	w3, w8, [sp, #8]
	str	w3, [x19, #4]
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #99
	csel	x9, x10, x9, eq
Lloh10:
	adrp	x10, l_.str@PAGE
Lloh11:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #97
	csel	x1, x10, x9, eq
	cmp	w3, #8
	b.eq	LBB0_9
; %bb.6:
	cmp	w3, #24
	b.eq	LBB0_10
; %bb.7:
	cmp	w3, #54
	b.ne	LBB0_11
; %bb.8:
Lloh12:
	adrp	x8, _MXL111SF_V6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MXL111SF_V6@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh17:
	adrp	x8, _MXL111SF_V8_100@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MXL111SF_V8_100@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh22:
	adrp	x8, _MXL111SF_V8_200@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MXL111SF_V8_200@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	w8, #0
Lloh27:
	adrp	x2, l_.str.6@PAGE
Lloh28:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_12:
	str	w8, [x19, #8]
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_info
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ID_REG,4,2                ; @CHIP_ID_REG
	.comm	_TOP_CHIP_REV_ID_REG,4,2        ; @TOP_CHIP_REV_ID_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MxL101SF"

l_.str.1:                               ; @.str.1
	.asciz	"MxL111SF"

l_.str.2:                               ; @.str.2
	.asciz	"UNKNOWN MxL1X1"

	.comm	_MXL111SF_V6,4,2                ; @MXL111SF_V6
l_.str.3:                               ; @.str.3
	.asciz	"v6"

	.comm	_MXL111SF_V8_100,4,2            ; @MXL111SF_V8_100
l_.str.4:                               ; @.str.4
	.asciz	"v8_100"

	.comm	_MXL111SF_V8_200,4,2            ; @MXL111SF_V8_200
l_.str.5:                               ; @.str.5
	.asciz	"v8_200"

l_.str.6:                               ; @.str.6
	.asciz	"UNKNOWN REVISION"

l_.str.7:                               ; @.str.7
	.asciz	"%s detected, %s (0x%x)"

	.no_dead_strip	_mxl1x1sf_get_chip_info
.subsections_via_symbols
