	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_get_nf_hist_mid
_ath9k_hw_get_nf_hist_mid:              ## @ath9k_hw_get_nf_hist_mid
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_ATH9K_NF_CAL_HIST_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,8), %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	xorl	%r8d, %r8d
	cmpl	$1, %r12d
	je	LBB0_18
## %bb.3:
	leal	-1(%r12), %r8d
	xorl	%ecx, %ecx
	movl	%r12d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
	decl	%r10d
	cmpl	%r8d, %ecx
	je	LBB0_18
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%r12d, %eax
	subl	%ecx, %eax
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r10d, %r9d
	decq	%r9
	movq	(%rbx), %rdx
	movl	$1, %eax
	cmpl	$2, %r10d
	jne	LBB0_6
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r9b
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx,%rax,8), %rsi
	cmpq	%rdx, %rsi
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, (%rbx,%rax,8)
	movq	%rsi, -8(%rbx,%rax,8)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r9, %rdi
	andq	$-2, %rdi
	negq	%rdi
	movl	$1, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdx, 8(%rbx,%rax,8)
	movq	%rsi, (%rbx,%rax,8)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rdi,%rax), %rsi
	addq	$2, %rsi
	addq	$2, %rax
	cmpq	$1, %rsi
	je	LBB0_14
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%rax,8), %rsi
	cmpq	%rdx, %rsi
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdx, (%rbx,%rax,8)
	movq	%rsi, -8(%rbx,%rax,8)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	%rsi, %rdx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx,%rax,8), %rsi
	cmpq	%rdx, %rsi
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rsi, %rdx
	jmp	LBB0_13
LBB0_1:
	decl	%r12d
	movl	%r12d, %r8d
LBB0_18:
	sarl	%r8d
	movslq	%r8d, %rax
	movq	(%rbx,%rax,8), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_NF_CAL_HIST_MAX,4,2      ## @ATH9K_NF_CAL_HIST_MAX
	.no_dead_strip	_ath9k_hw_get_nf_hist_mid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_get_nf_hist_mid
_ath9k_hw_get_nf_hist_mid:              ; @ath9k_hw_get_nf_hist_mid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ATH9K_NF_CAL_HIST_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH9K_NF_CAL_HIST_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	lsl	x2, x20, #3
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0xffffffff0
	sub	x19, x8, x9
	mov	sp, x19
	cmp	w20, #0
	b.le	LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_memcpy
	subs	w8, w20, #1
	b.eq	LBB0_11
; %bb.2:
	mov	w9, #0
	add	x10, x19, #8
	mov	x11, x20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	sub	w11, w11, #1
	cmp	w9, w8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	sub	w12, w20, w9
	cmp	w12, #2
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, w11
	sub	x12, x12, #1
	ldr	x13, [x19]
	mov	x14, x10
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	stp	x15, x13, [x14, #-8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x14, x14, #8
	subs	x12, x12, #1
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14]
	cmp	x15, x13
	b.gt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x13, x15
	b	LBB0_7
LBB0_10:
	sub	w8, w20, #1
LBB0_11:
	asr	w8, w8, #1
	ldr	x0, [x19, w8, sxtw #3]
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_NF_CAL_HIST_MAX,4,2      ; @ATH9K_NF_CAL_HIST_MAX
	.no_dead_strip	_ath9k_hw_get_nf_hist_mid
.subsections_via_symbols
