	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5008_hw_phy_modify_rx_buffer
_ar5008_hw_phy_modify_rx_buffer:        ## @ar5008_hw_phy_modify_rx_buffer
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %r14
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_ath9k_hw_reverse_bits
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.1:
	leal	-1(%r12), %ecx
	leal	6(%r12), %r9d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r9d
	movl	%r9d, %ecx
	andl	$-8, %ecx
	negl	%ecx
	leal	(%r12,%rcx), %r8d
	decl	%r8d
	sarl	$3, %r9d
	shll	$3, %r13d
	leal	(%r8,%r15), %esi
	cmpl	$8, %esi
	movl	$8, %ecx
	cmovll	%esi, %ecx
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	$-1, %edi
	movl	%r8d, %ecx
	shll	%cl, %edi
	xorl	%edx, %edi
	movl	%r13d, %ecx
	shll	%cl, %edi
	movl	%eax, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	movslq	%r9d, %r9
	movl	%r13d, %ecx
	shll	%cl, %edx
	movl	$8, %ecx
	movl	(%r14,%r9,4), %r10d
	xorl	%r10d, %edx
	andl	%edi, %edx
	xorl	%r10d, %edx
	movl	%edx, (%r14,%r9,4)
	subl	%r8d, %ecx
	cmpl	%ecx, %r15d
	jle	LBB0_4
## %bb.2:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	leaq	(%r14,%r9,4), %rdx
	addq	$4, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	$-8, %esi
	cmpl	$8, %esi
	movl	$8, %ecx
	cmovll	%esi, %ecx
	movl	$-1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	notl	%edi
	movl	%r13d, %ecx
	shll	%cl, %edi
	movl	%eax, %ebx
	shll	%cl, %ebx
	movl	(%rdx), %ecx
	xorl	%ecx, %ebx
	andl	%edi, %ebx
	xorl	%ecx, %ebx
	sarl	$8, %eax
	movl	%ebx, (%rdx)
	addq	$4, %rdx
	cmpl	$8, %esi
	ja	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar5008_hw_phy_modify_rx_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5008_hw_phy_modify_rx_buffer
_ar5008_hw_phy_modify_rx_buffer:        ; @ar5008_hw_phy_modify_rx_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_ath9k_hw_reverse_bits
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.1:
	sub	w11, w22, #1
	add	w8, w11, #7
	cmp	w11, #0
	csel	w12, w8, w11, lt
	asr	w14, w12, #3
	and	w13, w12, #0xfffffff8
	lsl	w8, w21, #3
	sub	w15, w11, w13
	add	w10, w15, w19
	mov	w9, #8
	cmp	w10, #8
	csel	w16, w10, w9, lt
	mov	w10, #-1
	lsl	w16, w10, w16
	lsl	w17, w10, w15
	eor	w16, w16, w17
	lsl	w16, w16, w8
	sbfiz	x14, x14, #2, #32
	ldr	w17, [x20, x14]
	bic	w17, w17, w16
	lsl	w1, w0, w15
	lsl	w1, w1, w8
	and	w16, w16, w1
	orr	w16, w17, w16
	str	w16, [x20, x14]
	sub	w14, w9, w15
	sub	w15, w19, w14
	cmp	w15, #1
	b.lt	LBB0_4
; %bb.2:
	sbfx	x15, x12, #3, #29
	asr	w12, w0, w14
	add	x14, x20, x15, lsl #2
	add	x14, x14, #4
	add	w11, w11, w19
	sub	w11, w11, w13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w11, #8
	cmp	w11, #8
	csel	w13, w11, w9, lt
	lsl	w13, w10, w13
	mvn	w13, w13
	lsl	w13, w13, w8
	ldr	w15, [x14]
	bic	w15, w15, w13
	lsl	w16, w12, w8
	and	w13, w13, w16
	orr	w13, w15, w13
	str	w13, [x14], #4
	asr	w12, w12, #8
	b.hi	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar5008_hw_phy_modify_rx_buffer
.subsections_via_symbols
