	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_reset_device
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_reset_device
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %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	8(%r14), %rdi
	movq	_TALITOS_IMR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
	movq	_TALITOS_IMR_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	movq	_TALITOS_IMR_LO_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
	movq	_TALITOS_FTR_HW_AUTH_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, 4(%r14)
	je	LBB0_9
## %bb.8:
	movq	_TALITOS_MDEUICR_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	movq	_TALITOS_MDEUICR_LO_ICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TALITOS_IMR,8,3                ## @TALITOS_IMR
	.comm	_TALITOS_IMR_INIT,4,2           ## @TALITOS_IMR_INIT
	.comm	_TALITOS_IMR_LO,8,3             ## @TALITOS_IMR_LO
	.comm	_TALITOS_IMR_LO_INIT,4,2        ## @TALITOS_IMR_LO_INIT
	.comm	_TALITOS_FTR_HW_AUTH_CHECK,4,2  ## @TALITOS_FTR_HW_AUTH_CHECK
	.comm	_TALITOS_MDEUICR_LO,8,3         ## @TALITOS_MDEUICR_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
	mov	x0, x20
	bl	_reset_device
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_reset_device
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_reset_channel
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_4
LBB0_6:
Lloh0:
	adrp	x8, _TALITOS_IMR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TALITOS_IMR@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh3:
	adrp	x8, _TALITOS_IMR_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TALITOS_IMR_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_setbits32
Lloh6:
	adrp	x8, _TALITOS_IMR_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TALITOS_IMR_LO@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh9:
	adrp	x8, _TALITOS_IMR_LO_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TALITOS_IMR_LO_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_setbits32
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _TALITOS_FTR_HW_AUTH_CHECK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TALITOS_FTR_HW_AUTH_CHECK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _TALITOS_MDEUICR_LO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TALITOS_MDEUICR_LO@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh17:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh18:
	adrp	x8, _TALITOS_MDEUICR_LO_ICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TALITOS_MDEUICR_LO_ICE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_setbits32
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TALITOS_IMR,8,3                ; @TALITOS_IMR
	.comm	_TALITOS_IMR_INIT,4,2           ; @TALITOS_IMR_INIT
	.comm	_TALITOS_IMR_LO,8,3             ; @TALITOS_IMR_LO
	.comm	_TALITOS_IMR_LO_INIT,4,2        ; @TALITOS_IMR_LO_INIT
	.comm	_TALITOS_FTR_HW_AUTH_CHECK,4,2  ; @TALITOS_FTR_HW_AUTH_CHECK
	.comm	_TALITOS_MDEUICR_LO,8,3         ; @TALITOS_MDEUICR_LO
	.comm	_TALITOS_MDEUICR_LO_ICE,4,2     ; @TALITOS_MDEUICR_LO_ICE
	.no_dead_strip	_init_device
.subsections_via_symbols
