	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_channel
_reset_channel:                         ## @reset_channel
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_TALITOS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_has_ftr_sec1
	movq	8(%rbx), %rcx
	movslq	%r15d, %r13
	movq	(%rcx,%r13,8), %rdi
	testl	%eax, %eax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	movq	_TALITOS_CCCR_LO@GOTPCREL(%rip), %r12
	addq	(%r12), %rdi
	movq	_TALITOS1_CCCR_LO_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_setbits32
	movq	8(%rbx), %rax
	movq	(%r12), %rdi
	addq	(%rax,%r13,8), %rdi
	callq	_in_be32
	testl	%eax, (%r15)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	8(%rbx), %rax
	movq	(%r12), %rdi
	addq	(%rax,%r13,8), %rdi
	callq	_in_be32
	testl	%eax, (%r15)
	jne	LBB0_2
	jmp	LBB0_4
LBB0_8:
	movq	_TALITOS_CCCR@GOTPCREL(%rip), %r12
	addq	(%r12), %rdi
	movq	_TALITOS2_CCCR_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_setbits32
	movq	8(%rbx), %rax
	movq	(%r12), %rdi
	addq	(%rax,%r13,8), %rdi
	callq	_in_be32
	testl	%eax, (%r15)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	8(%rbx), %rax
	movq	(%r12), %rdi
	addq	(%rax,%r13,8), %rdi
	callq	_in_be32
	testl	%eax, (%r15)
	jne	LBB0_9
	jmp	LBB0_4
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_12
LBB0_4:
	movq	8(%rbx), %rax
	movq	_TALITOS_CCCR_LO@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax,%r13,8), %rdi
	movq	_TALITOS_CCCR_LO_EAE@GOTPCREL(%rip), %rax
	movq	_TALITOS_CCCR_LO_CDWE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_TALITOS_CCCR_LO_CDIE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_setbits32
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	(%r15), %rdi
	addq	(%rax,%r13,8), %rdi
	movq	_TALITOS_CCCR_LO_NE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
LBB0_6:
	movq	_TALITOS_FTR_HW_AUTH_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rbx)
	je	LBB0_13
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%r15), %rdi
	addq	(%rax,%r13,8), %rdi
	movq	_TALITOS_CCCR_LO_IWSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setbits32
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TALITOS_TIMEOUT,4,2            ## @TALITOS_TIMEOUT
	.comm	_TALITOS_CCCR_LO,8,3            ## @TALITOS_CCCR_LO
	.comm	_TALITOS1_CCCR_LO_RESET,4,2     ## @TALITOS1_CCCR_LO_RESET
	.comm	_TALITOS_CCCR,8,3               ## @TALITOS_CCCR
	.comm	_TALITOS2_CCCR_RESET,4,2        ## @TALITOS2_CCCR_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reset channel %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TALITOS_CCCR_LO_EAE,4,2        ## @TALITOS_CCCR_LO_EAE
	.comm	_TALITOS_CCCR_LO_CDWE,4,2       ## @TALITOS_CCCR_LO_CDWE
	.comm	_TALITOS_CCCR_LO_CDIE,4,2       ## @TALITOS_CCCR_LO_CDIE
	.comm	_TALITOS_CCCR_LO_NE,4,2         ## @TALITOS_CCCR_LO_NE
	.comm	_TALITOS_FTR_HW_AUTH_CHECK,4,2  ## @TALITOS_FTR_HW_AUTH_CHECK
	.comm	_TALITOS_CCCR_LO_IWSE,4,2       ## @TALITOS_CCCR_LO_IWSE
	.no_dead_strip	_reset_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_channel
_reset_channel:                         ; @reset_channel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _TALITOS_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TALITOS_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	bl	_has_ftr_sec1
	mov	x20, x0
	ldr	x8, [x19, #8]
	sxtw	x23, w21
	ldr	x8, [x8, w21, sxtw #3]
Lloh3:
	adrp	x24, _TALITOS_CCCR_LO@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TALITOS_CCCR_LO@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x9, [x24]
	add	x0, x9, x8
Lloh5:
	adrp	x26, _TALITOS1_CCCR_LO_RESET@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TALITOS1_CCCR_LO_RESET@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_setbits32
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_in_be32
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_in_be32
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_2
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x26, _TALITOS_CCCR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TALITOS_CCCR@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x0, x9, x8
Lloh9:
	adrp	x27, _TALITOS2_CCCR_RESET@GOTPAGE
Lloh10:
	ldr	x27, [x27, _TALITOS2_CCCR_RESET@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_setbits32
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_in_be32
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_in_be32
	ldr	w8, [x27]
	tst	w8, w0
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	cbz	w25, LBB0_13
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	add	x0, x9, x8
Lloh11:
	adrp	x8, _TALITOS_CCCR_LO_EAE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TALITOS_CCCR_LO_EAE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _TALITOS_CCCR_LO_CDWE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TALITOS_CCCR_LO_CDWE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _TALITOS_CCCR_LO_CDIE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TALITOS_CCCR_LO_CDIE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_setbits32
	cbz	w20, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	add	x0, x9, x8
Lloh20:
	adrp	x8, _TALITOS_CCCR_LO_NE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TALITOS_CCCR_LO_NE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_setbits32
LBB0_10:
	ldr	w8, [x19]
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_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	add	x0, x9, x8
Lloh26:
	adrp	x8, _TALITOS_CCCR_LO_IWSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TALITOS_CCCR_LO_IWSE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_setbits32
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_TALITOS_TIMEOUT,4,2            ; @TALITOS_TIMEOUT
	.comm	_TALITOS_CCCR_LO,8,3            ; @TALITOS_CCCR_LO
	.comm	_TALITOS1_CCCR_LO_RESET,4,2     ; @TALITOS1_CCCR_LO_RESET
	.comm	_TALITOS_CCCR,8,3               ; @TALITOS_CCCR
	.comm	_TALITOS2_CCCR_RESET,4,2        ; @TALITOS2_CCCR_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reset channel %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TALITOS_CCCR_LO_EAE,4,2        ; @TALITOS_CCCR_LO_EAE
	.comm	_TALITOS_CCCR_LO_CDWE,4,2       ; @TALITOS_CCCR_LO_CDWE
	.comm	_TALITOS_CCCR_LO_CDIE,4,2       ; @TALITOS_CCCR_LO_CDIE
	.comm	_TALITOS_CCCR_LO_NE,4,2         ; @TALITOS_CCCR_LO_NE
	.comm	_TALITOS_FTR_HW_AUTH_CHECK,4,2  ; @TALITOS_FTR_HW_AUTH_CHECK
	.comm	_TALITOS_CCCR_LO_IWSE,4,2       ; @TALITOS_CCCR_LO_IWSE
	.no_dead_strip	_reset_channel
.subsections_via_symbols
