	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbt_enable_ofdm_token_ring
_dvbt_enable_ofdm_token_ring:           ## @dvbt_enable_ofdm_token_ring
	.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, %r12d
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_SIO_OFDM_SH_OFDM_RING_ENABLE_ON@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_SIO_OFDM_SH_OFDM_RING_ENABLE_OFF@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movq	_SIO_OFDM_SH_OFDM_RING_STATUS_DOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	_SIO_OFDM_SH_OFDM_RING_STATUS__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_read16
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	je	LBB0_13
LBB0_4:
	testl	%r12d, %r12d
	cmoveq	%r13, %r15
	movq	_SIO_OFDM_SH_OFDM_RING_ENABLE__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_write16
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_DRXK_OFDM_TR_SHUTDOWN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movq	_SIO_OFDM_SH_OFDM_RING_STATUS__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_read16
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	js	LBB0_6
## %bb.5:
	cmpq	%r13, -48(%rbp)
	je	LBB0_13
LBB0_6:
	addq	%r12, %r15
	movq	%r15, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:
	cmpq	%r13, -48(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	leaq	-48(%rbp), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	_SIO_OFDM_SH_OFDM_RING_STATUS__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_read16
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r13, -48(%rbp)
	jne	LBB0_8
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_OFDM_SH_OFDM_RING_ENABLE_ON,8,3 ## @SIO_OFDM_SH_OFDM_RING_ENABLE_ON
	.comm	_SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED,8,3 ## @SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_SIO_OFDM_SH_OFDM_RING_ENABLE_OFF,8,3 ## @SIO_OFDM_SH_OFDM_RING_ENABLE_OFF
	.comm	_SIO_OFDM_SH_OFDM_RING_STATUS_DOWN,8,3 ## @SIO_OFDM_SH_OFDM_RING_STATUS_DOWN
	.comm	_SIO_OFDM_SH_OFDM_RING_STATUS__A,4,2 ## @SIO_OFDM_SH_OFDM_RING_STATUS__A
	.comm	_SIO_OFDM_SH_OFDM_RING_ENABLE__A,4,2 ## @SIO_OFDM_SH_OFDM_RING_ENABLE__A
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DRXK_OFDM_TR_SHUTDOWN_TIMEOUT,4,2 ## @DRXK_OFDM_TR_SHUTDOWN_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"SIO not ready\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dvbt_enable_ofdm_token_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbt_enable_ofdm_token_ring
_dvbt_enable_ofdm_token_ring:           ; @dvbt_enable_ofdm_token_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _SIO_OFDM_SH_OFDM_RING_ENABLE_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_OFDM_SH_OFDM_RING_ENABLE_ON@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh8:
	adrp	x8, _SIO_OFDM_SH_OFDM_RING_ENABLE_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIO_OFDM_SH_OFDM_RING_ENABLE_OFF@GOTPAGEOFF]
Lloh10:
	ldr	x25, [x8]
Lloh11:
	adrp	x8, _SIO_OFDM_SH_OFDM_RING_STATUS_DOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIO_OFDM_SH_OFDM_RING_STATUS_DOWN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	w21, #0
	csel	x22, x8, x20, eq
Lloh14:
	adrp	x23, _SIO_OFDM_SH_OFDM_RING_STATUS__A@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SIO_OFDM_SH_OFDM_RING_STATUS__A@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_read16
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.eq	LBB0_10
LBB0_2:
	cmp	w21, #0
	csel	x2, x25, x24, eq
Lloh16:
	adrp	x8, _SIO_OFDM_SH_OFDM_RING_ENABLE__A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIO_OFDM_SH_OFDM_RING_ENABLE__A@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write16
Lloh19:
	adrp	x8, _jiffies@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	x24, [x8]
Lloh22:
	adrp	x8, _DRXK_OFDM_TR_SHUTDOWN_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DRXK_OFDM_TR_SHUTDOWN_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x21, x0
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_read16
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.eq	LBB0_10
LBB0_4:
	add	x21, x21, x24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_read16
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.ne	LBB0_5
	b	LBB0_10
LBB0_8:
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.eq	LBB0_10
; %bb.9:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SIO_OFDM_SH_OFDM_RING_ENABLE_ON,8,3 ; @SIO_OFDM_SH_OFDM_RING_ENABLE_ON
	.comm	_SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED,8,3 ; @SIO_OFDM_SH_OFDM_RING_STATUS_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SIO_OFDM_SH_OFDM_RING_ENABLE_OFF,8,3 ; @SIO_OFDM_SH_OFDM_RING_ENABLE_OFF
	.comm	_SIO_OFDM_SH_OFDM_RING_STATUS_DOWN,8,3 ; @SIO_OFDM_SH_OFDM_RING_STATUS_DOWN
	.comm	_SIO_OFDM_SH_OFDM_RING_STATUS__A,4,2 ; @SIO_OFDM_SH_OFDM_RING_STATUS__A
	.comm	_SIO_OFDM_SH_OFDM_RING_ENABLE__A,4,2 ; @SIO_OFDM_SH_OFDM_RING_ENABLE__A
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DRXK_OFDM_TR_SHUTDOWN_TIMEOUT,4,2 ; @DRXK_OFDM_TR_SHUTDOWN_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"SIO not ready\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dvbt_enable_ofdm_token_ring
.subsections_via_symbols
