	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_combine_linear_pcdac_curves
_ath5k_combine_linear_pcdac_curves:     ## @ath5k_combine_linear_pcdac_curves
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r9
	cmpl	$2, %ecx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jl	LBB0_2
## %bb.1:
	movl	4(%rsi), %ecx
	movl	%ecx, %eax
	notl	%eax
	addl	4(%rdx), %eax
	movl	(%rdx), %r11d
	movl	%r11d, %r14d
	subl	(%rsi), %r14d
	movl	%r11d, %ebx
	subl	%ecx, %ebx
	addl	$-126, %r11d
	cmpl	$127, %ebx
	cmovll	%ecx, %r11d
	movl	%eax, %r8d
	shrl	$31, %r8d
	addl	%eax, %r8d
	sarl	%r8d
	movl	$64, %r10d
	jmp	LBB0_3
LBB0_2:
	movl	(%rsi), %r11d
	movl	(%rdx), %r14d
	subl	%r11d, %r14d
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
LBB0_3:
	movq	8(%rdi), %rcx
	movq	(%rcx), %rbx
	movq	8(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ecx
	shrl	$31, %ecx
	addl	%r14d, %ecx
	sarl	%ecx
	movl	%r11d, %eax
	shrl	$31, %eax
	addl	%r11d, %eax
	sarl	%eax
	movl	%eax, 16(%rdi)
	leaq	256(%r9), %rdi
	movl	$63, %r15d
	xorl	%r13d, %r13d
	movl	$126, %r14d
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %r11d
	movl	$64, %r10d
	movl	%ecx, %eax
	movq	%rbx, %r12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	orl	%r10d, %r11d
	cmpl	$126, %r11d
	cmovgel	%r14d, %r11d
	movl	%r11d, -4(%rdi)
	addq	$-4, %rdi
	decl	%eax
	addb	$3, %r13b
	movl	%eax, %ecx
	movq	%r12, %rbx
	addq	$-1, %r15
	jae	LBB0_21
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$64, %r10d
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r12
	movl	%ecx, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	movl	(%r12,%rcx,4), %r11d
	testl	%r11d, %r11d
	jg	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r10d, %r10d
	jne	LBB0_20
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r10d, %r10d
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%rcx,%rcx), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax), %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%r8d, %eax
	cmpl	%esi, %edx
	jg	LBB0_19
	jmp	LBB0_6
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%r8d, %eax
	jmp	LBB0_6
LBB0_8:
	testl	$-2147483648, %r15d             ## imm = 0x80000000
	jne	LBB0_21
## %bb.9:
	leal	1(%r15), %ecx
	movq	%r15, %rax
	testb	$3, %cl
	je	LBB0_13
## %bb.10:
	movzbl	%r13b, %eax
	andl	$3, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %edx
	movl	%edx, -4(%rdi)
	addq	$-4, %rdi
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.12:
	movq	%r15, %rax
	subq	%rcx, %rax
LBB0_13:
	cmpq	$3, %r15
	jb	LBB0_21
## %bb.14:
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%r9,%rax,4), %ecx
	movl	%ecx, -16(%r9,%rax,4)
	movl	%ecx, -20(%r9,%rax,4)
	movl	%ecx, -24(%r9,%rax,4)
	movl	%ecx, -28(%r9,%rax,4)
	addq	$-4, %rax
	cmpq	$3, %rax
	jg	LBB0_15
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath5k_combine_linear_pcdac_curves
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_combine_linear_pcdac_curves
_ath5k_combine_linear_pcdac_curves:     ; @ath5k_combine_linear_pcdac_curves
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	w3, #2
	b.lt	LBB0_2
; %bb.1:
	ldp	w10, w9, [x1]
	mvn	w11, w9
	ldp	w12, w14, [x2]
	add	w11, w14, w11
	sub	w13, w12, w10
	sub	w10, w12, w9
	sub	w12, w12, #126
	cmp	w10, #126
	csel	w12, w12, w9, gt
	sub	w9, w14, w9
	cmp	w11, #0
	csel	w9, w9, w11, lt
	asr	w9, w9, #1
	mov	w10, #64
	b	LBB0_3
LBB0_2:
	mov	w9, #0
	mov	w10, #0
	ldr	w12, [x1]
	ldr	w11, [x2]
	sub	w13, w11, w12
LBB0_3:
	ldr	x11, [x0, #8]
	ldp	x14, x11, [x11]
	cmp	w13, #0
	cinc	w13, w13, lt
	asr	w15, w13, #1
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	str	w12, [x0, #16]
	mov	w12, #63
	mov	w13, #126
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x17, x14
	mov	x0, x15
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w16, [x17, w0, sxtw #2]
	cmp	w16, #0
	ccmp	w10, #0, #0, le
	mov	x15, x0
	mov	x14, x17
	b.eq	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	orr	w16, w10, w16
	cmp	w16, #126
	csel	w16, w16, w13, lt
	str	w16, [x8, x12, lsl #2]
	sub	w15, w15, #1
	sub	x12, x12, #1
	cmn	x12, #1
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #64
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w10, #0
	cbz	w15, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w16, w15, #1
	ldr	w17, [x2, #4]
	ldr	w0, [x1]
	sub	w17, w17, w0
	cmp	w16, w17
	mov	x17, x11
	mov	x0, x9
	b.le	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w16, [x14, w15, sxtw #2]
	mov	w10, #64
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x17, x11
	mov	x0, x9
	b	LBB0_5
LBB0_12:
	tbnz	w12, #31, LBB0_15
; %bb.13:
	sub	x9, x12, #63
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x9, lsl #2
	ldr	w11, [x10, #256]
	str	w11, [x10, #252]
	add	x10, x9, #63
	sub	x9, x9, #1
	cmp	x10, #0
	b.gt	LBB0_14
LBB0_15:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath5k_combine_linear_pcdac_curves
.subsections_via_symbols
