	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_init_ltm
_lan78xx_init_ltm:                      ## @lan78xx_init_ltm
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	_USB_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_lan78xx_read_reg
	movq	_USB_CFG1_LTM_ENABLE_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$63, %esi
	movl	$2, %edx
	callq	_lan78xx_read_eeprom
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$63, %esi
	movl	$2, %edx
	callq	_lan78xx_read_otp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	cmpl	$24, -56(%rbp)
	jne	LBB0_9
## %bb.7:
	movl	-52(%rbp), %esi
	addl	%esi, %esi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_lan78xx_read_raw_otp
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_11
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	cmpl	$24, -56(%rbp)
	jne	LBB0_9
## %bb.4:
	movl	-52(%rbp), %esi
	addl	%esi, %esi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_lan78xx_read_raw_eeprom
	testl	%eax, %eax
	js	LBB0_11
LBB0_9:
	movl	-48(%rbp), %edx
LBB0_10:
	movq	_LTM_BELT_IDLE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_LTM_BELT_IDLE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_LTM_BELT_ACT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_LTM_BELT_ACT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_LTM_INACTIVE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_LTM_INACTIVE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CFG1,4,2                   ## @USB_CFG1
	.comm	_USB_CFG1_LTM_ENABLE_,4,2       ## @USB_CFG1_LTM_ENABLE_
	.comm	_LTM_BELT_IDLE0,4,2             ## @LTM_BELT_IDLE0
	.comm	_LTM_BELT_IDLE1,4,2             ## @LTM_BELT_IDLE1
	.comm	_LTM_BELT_ACT0,4,2              ## @LTM_BELT_ACT0
	.comm	_LTM_BELT_ACT1,4,2              ## @LTM_BELT_ACT1
	.comm	_LTM_INACTIVE0,4,2              ## @LTM_INACTIVE0
	.comm	_LTM_INACTIVE1,4,2              ## @LTM_INACTIVE1
	.no_dead_strip	_lan78xx_init_ltm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_init_ltm
_lan78xx_init_ltm:                      ; @lan78xx_init_ltm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
Lloh3:
	adrp	x8, _USB_CFG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_CFG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_lan78xx_read_reg
	ldr	w8, [sp, #4]
Lloh6:
	adrp	x9, _USB_CFG1_LTM_ENABLE_@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_CFG1_LTM_ENABLE_@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #63
	mov	w2, #2
	bl	_lan78xx_read_eeprom
	cbz	x0, LBB0_6
; %bb.2:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #63
	mov	w2, #2
	bl	_lan78xx_read_otp
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	w8, [sp, #8]
	cmp	w8, #24
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
	lsl	w1, w8, #1
	add	x3, sp, #16
	mov	x0, x19
	mov	w2, #24
	bl	_lan78xx_read_raw_otp
	tbz	w0, #31, LBB0_8
	b	LBB0_10
LBB0_5:
	mov	w2, #0
	b	LBB0_9
LBB0_6:
	ldr	w8, [sp, #8]
	cmp	w8, #24
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp, #12]
	lsl	w1, w8, #1
	add	x3, sp, #16
	mov	x0, x19
	mov	w2, #24
	bl	_lan78xx_read_raw_eeprom
	tbnz	w0, #31, LBB0_10
LBB0_8:
	ldr	w2, [sp, #16]
LBB0_9:
Lloh9:
	adrp	x8, _LTM_BELT_IDLE0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LTM_BELT_IDLE0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh12:
	adrp	x8, _LTM_BELT_IDLE1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LTM_BELT_IDLE1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [sp, #20]
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh15:
	adrp	x8, _LTM_BELT_ACT0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LTM_BELT_ACT0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [sp, #24]
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh18:
	adrp	x8, _LTM_BELT_ACT1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LTM_BELT_ACT1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [sp, #28]
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh21:
	adrp	x8, _LTM_INACTIVE0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LTM_INACTIVE0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [sp, #32]
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh24:
	adrp	x8, _LTM_INACTIVE1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LTM_INACTIVE1@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [sp, #36]
	mov	x0, x19
	bl	_lan78xx_write_reg
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CFG1,4,2                   ; @USB_CFG1
	.comm	_USB_CFG1_LTM_ENABLE_,4,2       ; @USB_CFG1_LTM_ENABLE_
	.comm	_LTM_BELT_IDLE0,4,2             ; @LTM_BELT_IDLE0
	.comm	_LTM_BELT_IDLE1,4,2             ; @LTM_BELT_IDLE1
	.comm	_LTM_BELT_ACT0,4,2              ; @LTM_BELT_ACT0
	.comm	_LTM_BELT_ACT1,4,2              ; @LTM_BELT_ACT1
	.comm	_LTM_INACTIVE0,4,2              ; @LTM_INACTIVE0
	.comm	_LTM_INACTIVE1,4,2              ; @LTM_INACTIVE1
	.no_dead_strip	_lan78xx_init_ltm
.subsections_via_symbols
