	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000m_tune
_dib7000m_tune:                         ## @dib7000m_tune
	.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
	leaq	8(%rdi), %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_dib7000m_set_channel
	movq	%r15, %rdi
	movl	$898, %esi                      ## imm = 0x382
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_dib7000m_write_word
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$898, %esi                      ## imm = 0x382
	xorl	%edx, %edx
	callq	_dib7000m_write_word
	movl	%eax, %ebx
	movl	$45, %edi
	callq	_msleep
	movq	_DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dib7000m_set_power_mode
	movq	%r15, %rdi
	movl	$29, %esi
	movl	$4211, %edx                     ## imm = 0x1073
	callq	_dib7000m_write_word
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movl	$200, %edi
	callq	_msleep
LBB0_2:
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	setne	%cl
	shll	$12, %ecx
	orl	$34432, %ecx                    ## imm = 0x8680
	cmpl	$130, %eax
	movl	$30336, %edx                    ## imm = 0x7680
	cmovnel	%ecx, %edx
	movq	%r15, %rdi
	movl	$26, %esi
	callq	_dib7000m_write_word
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	sete	%cl
	movl	$8, %r14d
	movl	$8, %edx
	subl	%ecx, %edx
	cmpl	$130, %eax
	movl	$6, %r12d
	cmovel	%r12d, %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_dib7000m_write_word
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	sete	%cl
	subl	%ecx, %r14d
	cmpl	$130, %eax
	cmovel	%r12d, %r14d
	movq	%r15, %rdi
	movl	$33, %esi
	movl	%r14d, %edx
	callq	_dib7000m_write_word
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$535, %esi                      ## imm = 0x217
	callq	_dib7000m_read_word
	testb	$64, %al
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_dib7000m_update_timf
LBB0_4:
	orl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r14d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	callq	_BANDWIDTH_TO_KHZ
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dib7000m_set_bandwidth
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD,4,2 ## @DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD
	.no_dead_strip	_dib7000m_tune
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000m_tune
_dib7000m_tune:                         ; @dib7000m_tune
	.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	x20, x0
	mov	x23, x0
	ldr	x19, [x23], #8
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_dib7000m_set_channel
	mov	x0, x19
	mov	w1, #898
	mov	w2, #16384
	bl	_dib7000m_write_word
	mov	x21, x0
	mov	x0, x19
	mov	w1, #898
	mov	w2, #0
	bl	_dib7000m_write_word
	mov	x22, x0
	mov	w0, #45
	bl	_msleep
Lloh0:
	adrp	x8, _DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7000m_set_power_mode
	mov	x0, x19
	mov	w1, #29
	mov	w2, #4211
	bl	_dib7000m_write_word
	mov	x24, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w0, #200
	bl	_msleep
LBB0_2:
	ldr	w8, [x23]
	mov	w9, #38528
	mov	w10, #34432
	cmp	w8, #129
	csel	w9, w10, w9, eq
	mov	w10, #30336
	cmp	w8, #130
	csel	w2, w10, w9, eq
	mov	x0, x19
	mov	w1, #26
	bl	_dib7000m_write_word
	mov	x25, x0
	ldr	w8, [x23]
	cmp	w8, #129
	mov	w27, #7
	cinc	w9, w27, ne
	mov	w28, #6
	cmp	w8, #130
	csel	w2, w28, w9, eq
	mov	x0, x19
	mov	w1, #32
	bl	_dib7000m_write_word
	mov	x26, x0
	ldr	w8, [x23]
	cmp	w8, #129
	cinc	w9, w27, ne
	cmp	w8, #130
	csel	w2, w28, w9, eq
	mov	x0, x19
	mov	w1, #33
	bl	_dib7000m_write_word
	mov	x23, x0
	mov	x0, x19
	mov	w1, #535
	bl	_dib7000m_read_word
	tbz	w0, #6, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dib7000m_update_timf
LBB0_4:
	orr	w8, w22, w21
	orr	w8, w8, w24
	orr	w8, w8, w25
	orr	w8, w8, w26
	orr	w21, w8, w23
	ldr	w0, [x20, #12]
	bl	_BANDWIDTH_TO_KHZ
	mov	x1, x0
	mov	x0, x19
	bl	_dib7000m_set_bandwidth
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD,4,2 ; @DIB7000M_POWER_COR4_CRY_ESRAM_MOUT_NUD
	.no_dead_strip	_dib7000m_tune
.subsections_via_symbols
