	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_soc_type                   ## -- Begin function imx_soc_type
	.p2align	4, 0x90
_imx_soc_type:                          ## @imx_soc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_imx_soc_type.soctype(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	_IMX6_ANALOG_DIGPROG_SL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_imx6_anatop_read_4
	movq	_IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	sarl	%cl, %eax
	movq	_IMX6_ANALOG_DIGPROG_SOCTYPE_MASK@GOTPCREL(%rip), %rbx
	andl	(%rbx), %eax
	movq	_IMXSOC_6SL@GOTPCREL(%rip), %r15
	cmpl	$96, %eax
	je	LBB0_10
## %bb.2:
	movq	_IMX6_ANALOG_DIGPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_imx6_anatop_read_4
	movl	(%rbx), %esi
	andl	%eax, %esi
	movb	(%r14), %cl
	sarl	%cl, %esi
	leal	-96(%rsi), %ecx
	cmpl	$4, %ecx
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	$10485764, %edi                 ## imm = 0xA00004
	movl	$4, %esi
	callq	_devmap_ptov
	movq	_IMXSOC_6DL@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	testb	$3, (%rax)
	jne	LBB0_10
LBB0_6:
	movq	_IMXSOC_6S@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_printf
LBB0_9:
	movq	_IMXSOC_6Q@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_7:
	movq	_IMXSOC_6UL@GOTPCREL(%rip), %r15
LBB0_10:
	movq	(%r15), %rax
	movq	%rax, _imx_soc_type.soctype(%rip)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_imx_soc_type.soctype,8,3 ## @imx_soc_type.soctype
	.comm	_IMX6_ANALOG_DIGPROG_SL,4,2     ## @IMX6_ANALOG_DIGPROG_SL
	.comm	_IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT,4,2 ## @IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT
	.comm	_IMX6_ANALOG_DIGPROG_SOCTYPE_MASK,4,2 ## @IMX6_ANALOG_DIGPROG_SOCTYPE_MASK
	.comm	_IMX6_ANALOG_DIGPROG,4,2        ## @IMX6_ANALOG_DIGPROG
	.comm	_IMXSOC_6SL,8,3                 ## @IMXSOC_6SL
	.comm	_IMXSOC_6S,8,3                  ## @IMXSOC_6S
	.comm	_IMXSOC_6DL,8,3                 ## @IMXSOC_6DL
	.comm	_IMXSOC_6Q,8,3                  ## @IMXSOC_6Q
	.comm	_IMXSOC_6UL,8,3                 ## @IMXSOC_6UL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"imx_soc_type: Don't understand hwsoc 0x%02x, digprog 0x%08x; assuming IMXSOC_6Q\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_soc_type                   ; -- Begin function imx_soc_type
	.p2align	2
_imx_soc_type:                          ; @imx_soc_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	adrp	x19, _imx_soc_type.soctype@PAGE
	ldr	x0, [x19, _imx_soc_type.soctype@PAGEOFF]
	cbnz	x0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _IMX6_ANALOG_DIGPROG_SL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMX6_ANALOG_DIGPROG_SL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_imx6_anatop_read_4
Lloh3:
	adrp	x20, _IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x20]
	asr	w8, w0, w8
Lloh5:
	adrp	x21, _IMX6_ANALOG_DIGPROG_SOCTYPE_MASK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IMX6_ANALOG_DIGPROG_SOCTYPE_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w8, w8, w9
	cmp	w8, #96
	b.ne	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _IMXSOC_6SL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IMXSOC_6SL@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh9:
	adrp	x8, _IMX6_ANALOG_DIGPROG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMX6_ANALOG_DIGPROG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_imx6_anatop_read_4
	ldr	w8, [x21]
	and	w8, w8, w0
	ldr	w9, [x20]
	asr	w1, w8, w9
	sub	w9, w1, #96
	cmp	w9, #4
	b.hi	LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _IMXSOC_6SL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IMXSOC_6SL@GOTPAGEOFF]
Lloh14:
	adrp	x10, lJTI0_0@PAGE
Lloh15:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	mov	w0, #4
	movk	w0, #160, lsl #16
	mov	w1, #4
	bl	_devmap_ptov
	cbz	x0, LBB0_7
; %bb.6:
	ldrb	w8, [x0]
	tst	w8, #0x3
	b.eq	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _IMXSOC_6DL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IMXSOC_6DL@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x8, _IMXSOC_6S@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IMXSOC_6S@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	x2, x0
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_10:
Lloh22:
	adrp	x8, _IMXSOC_6Q@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IMXSOC_6Q@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _IMXSOC_6UL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IMXSOC_6UL@GOTPAGEOFF]
LBB0_12:
	ldr	x0, [x8]
	str	x0, [x19, _imx_soc_type.soctype@PAGEOFF]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_imx_soc_type.soctype,8,3 ; @imx_soc_type.soctype
	.comm	_IMX6_ANALOG_DIGPROG_SL,4,2     ; @IMX6_ANALOG_DIGPROG_SL
	.comm	_IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT,4,2 ; @IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT
	.comm	_IMX6_ANALOG_DIGPROG_SOCTYPE_MASK,4,2 ; @IMX6_ANALOG_DIGPROG_SOCTYPE_MASK
	.comm	_IMX6_ANALOG_DIGPROG,4,2        ; @IMX6_ANALOG_DIGPROG
	.comm	_IMXSOC_6SL,8,3                 ; @IMXSOC_6SL
	.comm	_IMXSOC_6S,8,3                  ; @IMXSOC_6S
	.comm	_IMXSOC_6DL,8,3                 ; @IMXSOC_6DL
	.comm	_IMXSOC_6Q,8,3                  ; @IMXSOC_6Q
	.comm	_IMXSOC_6UL,8,3                 ; @IMXSOC_6UL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"imx_soc_type: Don't understand hwsoc 0x%02x, digprog 0x%08x; assuming IMXSOC_6Q\n"

.subsections_via_symbols
