	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_parse_sdd_file
_cw1200_parse_sdd_file:                 ## @cw1200_parse_sdd_file
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	8(%rax), %ecx
	xorl	%r14d, %r14d
	cmpl	$2, %ecx
	jge	LBB0_1
LBB0_13:
	cmpl	$0, 8(%rbx)
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	$0, (%rbx)
	jmp	LBB0_15
LBB0_1:
	movq	(%rax), %r13
	leaq	(,%rcx,4), %rcx
	addq	%r13, %rcx
	leaq	8(%r13), %rax
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	4(%r13), %rcx
	leaq	16(,%rcx,4), %rax
	addq	%r13, %rax
	leaq	8(%r13,%rcx,4), %r13
	movq	16(%rbx), %rdx
	movslq	8(%rdx), %rcx
	shlq	$2, %rcx
	addq	(%rdx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r13), %rdx
	leaq	8(,%rdx,4), %rsi
	addq	%r13, %rsi
	cmpq	%rcx, %rsi
	ja	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
	cmpl	$128, %ecx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %edx
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	shrl	$7, %eax
	andl	$31, %eax
	movl	%eax, (%rbx)
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	4(%rbx), %edx
	cmpl	%edx, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	movl	$-1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Malformed sdd structure\n"

L_.str.1:                               ## @.str.1
	.asciz	"SDD_PTA_CFG_ELT_ID malformed\n"

L_.str.2:                               ## @.str.2
	.asciz	"PTA found; Listen Interval %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"SDD file doesn't match configured refclk (%d vs %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"PTA element NOT found.\n"

	.no_dead_strip	_cw1200_parse_sdd_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_parse_sdd_file
_cw1200_parse_sdd_file:                 ; @cw1200_parse_sdd_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x9, [x0, #16]
	ldr	w8, [x9, #8]
	cmp	w8, #2
	b.ge	LBB0_4
; %bb.1:
	mov	w20, #0
LBB0_2:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_16
; %bb.3:
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	str	wzr, [x19]
	b	LBB0_16
LBB0_4:
	mov	w20, #0
	ldr	x24, [x9]
	add	x9, x24, x8, lsl #2
	add	x8, x24, #8
Lloh2:
	adrp	x21, l_.str.3@PAGE
Lloh3:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_pr_warn
	mov	w20, #-1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x24, #4]
	add	x8, x24, x8, lsl #2
	add	x24, x8, #8
	add	x8, x8, #16
	ldr	x9, [x19, #16]
	ldr	x10, [x9]
	ldrsw	x9, [x9, #8]
	add	x9, x10, x9, lsl #2
	cmp	x8, x9
	b.hi	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x24, #4]
	add	x11, x24, x10, lsl #2
	add	x11, x11, #8
	cmp	x11, x9
	b.hi	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x24]
	cmp	w9, #128
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w10, #3
	b.le	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8]
	bl	_le16_to_cpu
	cbz	w0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24, #16]
	bl	_le16_to_cpu
	ubfx	w8, w0, #7, #5
	str	w8, [x19]
	str	x8, [sp]
	mov	x0, x23
	bl	_pr_debug
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	stp	x0, x8, [sp]
	mov	x0, x21
	bl	_pr_warn
	b	LBB0_6
LBB0_15:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	mov	w20, #-1
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Malformed sdd structure\n"

l_.str.1:                               ; @.str.1
	.asciz	"SDD_PTA_CFG_ELT_ID malformed\n"

l_.str.2:                               ; @.str.2
	.asciz	"PTA found; Listen Interval %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"SDD file doesn't match configured refclk (%d vs %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"PTA element NOT found.\n"

	.no_dead_strip	_cw1200_parse_sdd_file
.subsections_via_symbols
