	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	_TALITOS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%r13), %r12
	movl	%r14d, %edi
	callq	_TALITOS_CCCR
	addq	%rax, %r12
	movq	_TALITOS_CCCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rax, %r12
	callq	_setbits32
	movq	8(%r13), %rbx
	movl	%r14d, %edi
	callq	_TALITOS_CCCR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_in_be32
	testl	%eax, (%r12)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r15d
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	8(%r13), %rbx
	movl	%r14d, %edi
	callq	_TALITOS_CCCR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_in_be32
	testl	%eax, (%r12)
	jne	LBB0_1
	jmp	LBB0_3
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_3:
	movq	8(%r13), %rbx
	movl	%r14d, %edi
	callq	_TALITOS_CCCR_LO
	movq	_TALITOS_CCCR_LO_EAE@GOTPCREL(%rip), %rcx
	movq	_TALITOS_CCCR_LO_CDWE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	addq	%rax, %rbx
	movq	_TALITOS_CCCR_LO_CDIE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_setbits32
	movq	_TALITOS_FTR_HW_AUTH_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.4:
	movq	8(%r13), %rbx
	movl	%r14d, %edi
	callq	_TALITOS_CCCR_LO
	addq	%rax, %rbx
	movq	_TALITOS_CCCR_LO_IWSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_setbits32
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %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_RESET,4,2         ## @TALITOS_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_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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _TALITOS_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TALITOS_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x23, [x0, #8]
	mov	x0, x19
	bl	_TALITOS_CCCR
	add	x0, x0, x23
Lloh3:
	adrp	x23, _TALITOS_CCCR_RESET@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TALITOS_CCCR_RESET@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_setbits32
	ldr	x24, [x20, #8]
	mov	x0, x19
	bl	_TALITOS_CCCR
	add	x0, x0, x24
	bl	_in_be32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	ldr	x24, [x20, #8]
	mov	x0, x19
	bl	_TALITOS_CCCR
	add	x0, x0, x24
	bl	_in_be32
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	cbz	w22, LBB0_7
LBB0_4:
	ldr	x21, [x20, #8]
	mov	x0, x19
	bl	_TALITOS_CCCR_LO
	add	x0, x0, x21
Lloh5:
	adrp	x8, _TALITOS_CCCR_LO_EAE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TALITOS_CCCR_LO_EAE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _TALITOS_CCCR_LO_CDWE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TALITOS_CCCR_LO_CDWE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _TALITOS_CCCR_LO_CDIE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TALITOS_CCCR_LO_CDIE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_setbits32
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _TALITOS_FTR_HW_AUTH_CHECK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TALITOS_FTR_HW_AUTH_CHECK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x20, [x20, #8]
	mov	x0, x19
	bl	_TALITOS_CCCR_LO
	add	x0, x0, x20
Lloh17:
	adrp	x8, _TALITOS_CCCR_LO_IWSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TALITOS_CCCR_LO_IWSE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_setbits32
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TALITOS_TIMEOUT,4,2            ; @TALITOS_TIMEOUT
	.comm	_TALITOS_CCCR_RESET,4,2         ; @TALITOS_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_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
