	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_rfb_op
_ath5k_hw_rfb_op:                       ## @ath5k_hw_rfb_op
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%r8d, %r15d
	movq	16(%rdi), %r11
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rsi,%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$40, %rax
	cmpq	%rax, %rbx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	testq	%r11, %r11
	je	LBB0_5
## %bb.6:
	movq	8(%rsi,%rax), %rcx
	movq	32(%rsi,%rax), %r13
	movq	8(%rdi), %rdi
	movq	(%rdi,%rcx,8), %rcx
	cmpq	$3, %r13
	jg	LBB0_9
## %bb.7:
	movq	16(%rsi,%rax), %r10
	cmpq	$32, %r10
	jg	LBB0_9
## %bb.8:
	movq	24(%rsi,%rax), %r14
	leaq	(%r14,%r10), %rax
	cmpq	$320, %rax                      ## imm = 0x140
	jge	LBB0_9
## %bb.10:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	-1(%r14), %rax
	leaq	6(%r14), %r12
	testq	%rax, %rax
	cmovnsq	%rax, %r12
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.12:
	movq	%rdx, %rdi
	movq	%r10, %rsi
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	movq	%r11, %rbx
	callq	_ath5k_hw_bitswap
	movq	%rbx, %r11
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movslq	%eax, %rdi
	testq	%r10, %r10
	jg	LBB0_14
	jmp	LBB0_23
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ATH5K_PRINTF
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rcx, %rsi
	xorl	%eax, %eax
	callq	_ATH5K_PRINTF
	jmp	LBB0_24
LBB0_11:
	xorl	%edi, %edi
	testq	%r10, %r10
	jle	LBB0_23
LBB0_14:
	movq	%r12, %rax
	andq	$-8, %rax
	sarq	$3, %r12
	negq	%rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%r12, %rsi
	leaq	(%r14,%rax), %rdx
	decq	%rdx
	shlq	$3, %r13
	leaq	(%r10,%rdx), %r9
	cmpq	$8, %r9
	movl	$8, %r8d
	cmovlq	%r9, %r8
	movl	$-1, %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	movl	$-1, %ebx
	movl	%edx, %ecx
	shll	%cl, %ebx
	xorl	%eax, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movslq	%ebx, %rax
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.15:
	movq	%rdi, %rbx
	movl	%edx, %ecx
	shlq	%cl, %rbx
	movl	%r13d, %ecx
	shlq	%cl, %rbx
	movq	(%r11,%rsi,8), %rcx
	xorq	%rcx, %rbx
	andq	%rax, %rbx
	xorq	%rcx, %rbx
	movq	%rbx, (%r11,%rsi,8)
	movb	$8, %cl
	subb	%dl, %cl
	sarq	%cl, %rdi
	xorl	%r8d, %r8d
	cmpq	$9, %r9
	jge	LBB0_18
	jmp	LBB0_23
LBB0_16:
	andq	(%r11,%rsi,8), %rax
	movl	%r13d, %ecx
	sarq	%cl, %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	orq	%rax, %rdi
	subq	%rdx, %r8
	cmpq	$9, %r9
	jl	LBB0_23
LBB0_18:
	addq	$-8, %r9
	leaq	(%r11,%rsi,8), %rax
	addq	$8, %rax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	andq	(%rax), %rbx
	movl	%r13d, %ecx
	sarq	%cl, %rbx
	movl	%r8d, %ecx
	shlq	%cl, %rbx
	orq	%rbx, %rdi
	addq	%rdx, %r8
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$-8, %r9
	addq	$8, %rax
	testq	%r9, %r9
	jle	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$8, %r9
	movl	$8, %edx
	cmovlq	%r9, %rdx
	movl	$-1, %ebx
	movl	%edx, %ecx
	shll	%cl, %ebx
	notl	%ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movslq	%ebx, %rbx
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rax), %rdx
	movq	%rdi, %rsi
	movl	%r13d, %ecx
	shlq	%cl, %rsi
	xorq	%rdx, %rsi
	andq	%rbx, %rsi
	xorq	%rdx, %rsi
	movq	%rsi, (%rax)
	sarq	$8, %rdi
	jmp	LBB0_22
LBB0_23:
	movl	$1, %ebx
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.25:
	movq	%r10, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_hw_bitswap               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rf register not found!\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid values at offset %u\n"

	.no_dead_strip	_ath5k_hw_rfb_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_rfb_op
_ath5k_hw_rfb_op:                       ; @ath5k_hw_rfb_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x4
	ldr	x21, [x0, #16]
	add	x8, x1, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-16]
	cmp	x10, x3
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #40
	subs	x9, x9, #1
	b.ne	LBB0_2
	b	LBB0_10
LBB0_4:
	cbz	x21, LBB0_10
; %bb.5:
	ldur	x9, [x8, #-8]
	ldr	x23, [x8, #16]
	ldr	x10, [x0, #8]
	ldr	x22, [x10, x9, lsl #3]
	cmp	x23, #3
	b.gt	LBB0_13
; %bb.6:
	ldr	x20, [x8]
	cmp	x20, #32
	b.gt	LBB0_13
; %bb.7:
	ldr	x8, [x8, #8]
	add	x9, x8, x20
	cmp	x9, #320
	b.ge	LBB0_13
; %bb.8:
	sub	x24, x8, #1
	add	x8, x24, #7
	cmp	x24, #0
	csel	x25, x8, x24, lt
	cbz	w19, LBB0_14
; %bb.9:
	mov	x0, x2
	mov	x1, x20
	bl	_ath5k_hw_bitswap
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	cmp	x20, #1
	b.ge	LBB0_15
	b	LBB0_23
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_ATH5K_PRINTF
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	str	x22, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_14:
	mov	x0, #0
	cmp	x20, #1
	b.lt	LBB0_23
LBB0_15:
	asr	x11, x25, #3
	and	x9, x25, #0xfffffffffffffff8
	add	x14, x22, x11
	lsl	x8, x23, #3
	sub	x13, x24, x9
	add	x12, x20, x13
	subs	x10, x12, #8
	mov	w9, #8
	csel	x9, x12, x9, lt
	mov	w15, #-1
	lsl	w16, w15, w9
	lsl	w15, w15, w13
	eor	w15, w16, w15
	and	x16, x8, #0xfffffff8
	lsl	w15, w15, w16
	sxtw	x15, w15
	cbz	w19, LBB0_17
; %bb.16:
	mov	x9, #0
	lsl	x14, x14, #3
	ldr	x16, [x21, x14]
	bic	x16, x16, x15
	lsl	x17, x0, x13
	lsl	x17, x17, x8
	and	x15, x17, x15
	orr	x15, x16, x15
	str	x15, [x21, x14]
	mov	w14, #8
	sub	x13, x14, x13
	asr	x0, x0, x13
	cmp	x12, #9
	b.ge	LBB0_18
	b	LBB0_23
LBB0_17:
	ldr	x14, [x21, x14, lsl #3]
	and	x14, x14, x15
	asr	x14, x14, x8
	asr	x14, x14, x13
	orr	x0, x14, x0
	sub	x9, x9, x13
	cmp	x12, #9
	b.lt	LBB0_23
LBB0_18:
	add	x11, x22, x11
	add	x11, x21, x11, lsl #3
	add	x11, x11, #8
	mov	w12, #8
	mov	w13, #-1
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x16, [x11]
	and	x15, x16, x15
	asr	x15, x15, x8
	lsl	x15, x15, x9
	orr	x0, x15, x0
	add	x9, x9, x10
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x11, x11, #8
	mov	x10, x14
	cmp	x14, #0
	b.le	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	subs	x14, x10, #8
	csel	x10, x10, x12, lt
	lsl	w15, w13, w10
	mvn	w15, w15
	lsl	w15, w15, w8
	sxtw	x15, w15
	cbz	w19, LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x10, [x11]
	bic	x10, x10, x15
	lsl	x16, x0, x8
	and	x15, x16, x15
	orr	x10, x10, x15
	str	x10, [x11]
	asr	x0, x0, #8
	b	LBB0_20
LBB0_23:
	cbz	w19, LBB0_25
; %bb.24:
	mov	w0, #1
	b	LBB0_12
LBB0_25:
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ath5k_hw_bitswap
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rf register not found!\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid values at offset %u\n"

	.no_dead_strip	_ath5k_hw_rfb_op
.subsections_via_symbols
