	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_get_chan_pcal_surrounding_piers
_ath5k_get_chan_pcal_surrounding_piers: ## @ath5k_get_chan_pcal_surrounding_piers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movl	8(%rsi), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$130, %esi
	jne	LBB0_4
## %bb.2:
	leaq	24(%rdi), %rsi
	movl	$130, %r8d
	jmp	LBB0_5
LBB0_3:
	leaq	16(%rdi), %rsi
	movl	$129, %r8d
	jmp	LBB0_5
LBB0_4:
	leaq	8(%rdi), %rsi
	movl	$128, %r8d
LBB0_5:
	movq	(%rsi), %r9
	movq	(%r9), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_6
## %bb.7:
	movq	(%rdi), %rdi
	movq	(%rdi,%r8,8), %rdi
	leaq	-1(%rdi), %r8
	cmpq	-8(%r9,%rdi,8), %rax
	jle	LBB0_9
## %bb.8:
	movq	%r8, %rdi
	jmp	LBB0_16
LBB0_9:
	cmpq	%rax, %rsi
	jne	LBB0_10
LBB0_6:
	xorl	%r8d, %r8d
	xorl	%edi, %edi
LBB0_16:
	leaq	(%r9,%rdi,8), %rax
	movq	%rax, (%rdx)
	leaq	(%r9,%r8,8), %rax
	movq	%rax, (%rcx)
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rax
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r8, %rdi
	ja	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r9,%rdi,8), %rsi
	incq	%rdi
	cmpq	%rax, %rsi
	jne	LBB0_11
## %bb.15:
	decq	%rdi
	movq	%rdi, %r8
	jmp	LBB0_16
LBB0_12:
	leaq	-1(%rdi), %r8
	addq	$-2, %rdi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath5k_get_chan_pcal_surrounding_piers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_get_chan_pcal_surrounding_piers
_ath5k_get_chan_pcal_surrounding_piers: ; @ath5k_get_chan_pcal_surrounding_piers
	.cfi_startproc
; %bb.0:
	ldr	x9, [x1]
	ldr	w8, [x1, #8]
	add	x11, x0, #16
	mov	w10, #129
	cmp	w8, #130
	add	x12, x0, #8
	mov	w13, #128
	add	x14, x0, #24
	mov	w15, #130
	csel	x13, x13, x15, ne
	csel	x12, x12, x14, ne
	cmp	w8, #129
	csel	x10, x10, x13, eq
	csel	x8, x11, x12, eq
	ldr	x8, [x8]
	ldr	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_3
; %bb.1:
	ldr	x12, [x0]
	ldr	x10, [x12, x10, lsl #3]
	sub	x10, x10, #1
	ldr	x13, [x8, x10, lsl #3]
	mov	x12, x10
	cmp	x9, x13
	b.gt	LBB0_4
; %bb.2:
	cmp	x11, x9
	b.ne	LBB0_5
LBB0_3:
	mov	x10, #0
	mov	x12, #0
LBB0_4:
	add	x9, x8, x12, lsl #3
	str	x9, [x2]
	add	x8, x8, x10, lsl #3
	str	x8, [x3]
	ret
LBB0_5:
	mov	w12, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x11
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x12, x10
	b.hi	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x8, x12, lsl #3]
	add	x12, x12, #1
	cmp	x11, x9
	b.ne	LBB0_6
; %bb.9:
	sub	x10, x12, #1
	mov	x12, x10
	b	LBB0_4
LBB0_10:
	sub	x10, x12, #1
	sub	x12, x12, #2
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath5k_get_chan_pcal_surrounding_piers
.subsections_via_symbols
