	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_device
_init_device:                           ## @init_device
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_has_ftr_sec1
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_reset_device
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	%r12, %rdi
	callq	_reset_device
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_reset_channel
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_5
LBB0_7:
	movq	_TALITOS_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	_TALITOS1_IMR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clrbits32
	movq	_TALITOS_IMR_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	movq	_TALITOS1_IMR_LO_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clrbits32
	movq	%r14, %rbx
	addq	$24, %rbx
	movq	_TALITOS1_DEUICR_KPE@GOTPCREL(%rip), %rax
	movq	_TALITOS_EUICR@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	_TALITOS2_IMR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
	movq	_TALITOS2_IMR_LO_INIT@GOTPCREL(%rip), %rax
	movq	_TALITOS_IMR_LO@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rdi
	addq	(%rbx), %rdi
	movl	(%rax), %esi
	callq	_setbits32
	movq	_TALITOS_FTR_HW_AUTH_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	testl	%eax, 4(%r14)
	je	LBB0_12
## %bb.11:
	movq	_TALITOS_EUICR_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	movq	_TALITOS_MDEUICR_LO_ICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TALITOS_IMR,8,3                ## @TALITOS_IMR
	.comm	_TALITOS1_IMR_INIT,4,2          ## @TALITOS1_IMR_INIT
	.comm	_TALITOS_IMR_LO,8,3             ## @TALITOS_IMR_LO
	.comm	_TALITOS1_IMR_LO_INIT,4,2       ## @TALITOS1_IMR_LO_INIT
	.comm	_TALITOS_EUICR,8,3              ## @TALITOS_EUICR
	.comm	_TALITOS1_DEUICR_KPE,4,2        ## @TALITOS1_DEUICR_KPE
	.comm	_TALITOS2_IMR_INIT,4,2          ## @TALITOS2_IMR_INIT
	.comm	_TALITOS2_IMR_LO_INIT,4,2       ## @TALITOS2_IMR_LO_INIT
	.comm	_TALITOS_FTR_HW_AUTH_CHECK,4,2  ## @TALITOS_FTR_HW_AUTH_CHECK
	.comm	_TALITOS_EUICR_LO,8,3           ## @TALITOS_EUICR_LO
	.comm	_TALITOS_MDEUICR_LO_ICE,4,2     ## @TALITOS_MDEUICR_LO_ICE
	.no_dead_strip	_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_device
_init_device:                           ; @init_device
	.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
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_has_ftr_sec1
	mov	x21, x0
	mov	x0, x20
	bl	_reset_device
	cbnz	w0, LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_reset_device
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_reset_channel
	cbnz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_4
LBB0_6:
	mov	x20, x19
	ldr	x8, [x20, #16]!
Lloh0:
	adrp	x9, _TALITOS_IMR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TALITOS_IMR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	cbz	w21, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _TALITOS1_IMR_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TALITOS1_IMR_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_clrbits32
Lloh6:
	adrp	x8, _TALITOS_IMR_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TALITOS_IMR_LO@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh9:
	adrp	x8, _TALITOS1_IMR_LO_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TALITOS1_IMR_LO_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_clrbits32
	add	x20, x19, #24
Lloh12:
	adrp	x8, _TALITOS1_DEUICR_KPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TALITOS1_DEUICR_KPE@GOTPAGEOFF]
Lloh14:
	adrp	x9, _TALITOS_EUICR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TALITOS_EUICR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _TALITOS2_IMR_INIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TALITOS2_IMR_INIT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_setbits32
Lloh19:
	adrp	x8, _TALITOS2_IMR_LO_INIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TALITOS2_IMR_LO_INIT@GOTPAGEOFF]
Lloh21:
	adrp	x9, _TALITOS_IMR_LO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TALITOS_IMR_LO@GOTPAGEOFF]
LBB0_9:
	ldr	x10, [x20]
	ldr	x9, [x9]
	add	x0, x9, x10
	ldr	w1, [x8]
	bl	_setbits32
	ldr	w8, [x19, #4]
Lloh23:
	adrp	x9, _TALITOS_FTR_HW_AUTH_CHECK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TALITOS_FTR_HW_AUTH_CHECK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh26:
	adrp	x8, _TALITOS_EUICR_LO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TALITOS_EUICR_LO@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh28:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh29:
	adrp	x8, _TALITOS_MDEUICR_LO_ICE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TALITOS_MDEUICR_LO_ICE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_setbits32
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TALITOS_IMR,8,3                ; @TALITOS_IMR
	.comm	_TALITOS1_IMR_INIT,4,2          ; @TALITOS1_IMR_INIT
	.comm	_TALITOS_IMR_LO,8,3             ; @TALITOS_IMR_LO
	.comm	_TALITOS1_IMR_LO_INIT,4,2       ; @TALITOS1_IMR_LO_INIT
	.comm	_TALITOS_EUICR,8,3              ; @TALITOS_EUICR
	.comm	_TALITOS1_DEUICR_KPE,4,2        ; @TALITOS1_DEUICR_KPE
	.comm	_TALITOS2_IMR_INIT,4,2          ; @TALITOS2_IMR_INIT
	.comm	_TALITOS2_IMR_LO_INIT,4,2       ; @TALITOS2_IMR_LO_INIT
	.comm	_TALITOS_FTR_HW_AUTH_CHECK,4,2  ; @TALITOS_FTR_HW_AUTH_CHECK
	.comm	_TALITOS_EUICR_LO,8,3           ; @TALITOS_EUICR_LO
	.comm	_TALITOS_MDEUICR_LO_ICE,4,2     ; @TALITOS_MDEUICR_LO_ICE
	.no_dead_strip	_init_device
.subsections_via_symbols
