	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_tx_shift_bm
_carl9170_tx_shift_bm:                  ## @carl9170_tx_shift_bm
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rdi
	movq	%rsi, %r15
	movl	(%rsi), %esi
	callq	_SEQ_DIFF
	movq	%rax, %rbx
	movq	_CARL9170_BAW_BITS@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setge	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_test_and_clear_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	callq	_SEQ_DIFF
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setge	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	16(%r15), %edi
	movq	%r14, %rsi
	callq	_bitmap_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	16(%r15), %edi
	movq	%r14, %rsi
	callq	_find_first_bit
	movq	%rax, %r14
LBB0_4:
	movl	(%r15), %eax
	addl	%r14d, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%eax, (%r15)
	movl	16(%r15), %edi
	movq	(%r12), %rcx
	movl	%edi, %esi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bitmap_shift_right             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_BAW_BITS,8,3          ## @CARL9170_BAW_BITS
	.no_dead_strip	_carl9170_tx_shift_bm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_tx_shift_bm
_carl9170_tx_shift_bm:                  ; @carl9170_tx_shift_bm
	.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	x0, x2
	mov	x19, x1
	ldr	w1, [x1]
	bl	_SEQ_DIFF
	mov	x20, x0
Lloh0:
	adrp	x21, _CARL9170_BAW_BITS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CARL9170_BAW_BITS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, ge
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_test_and_clear_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_SEQ_DIFF
	mov	x20, x0
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, ge
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_bitmap_empty
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_find_first_bit
	mov	x20, x0
LBB0_5:
	ldr	w8, [x19]
	add	w8, w8, w20
	and	w8, w8, #0xfff
	str	w8, [x19]
	ldr	w0, [x19, #16]
	ldr	x3, [x21]
	mov	x1, x0
	mov	x2, x20
	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
	b	_bitmap_shift_right
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_BAW_BITS,8,3          ; @CARL9170_BAW_BITS
	.no_dead_strip	_carl9170_tx_shift_bm
.subsections_via_symbols
