	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsxx_dma_stripe_setup
_rsxx_dma_stripe_setup:                 ## @rsxx_dma_stripe_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leal	-1(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, %eax
	negl	%eax
	movl	%eax, 8(%rbx)
	movl	(%rbx), %edi
	callq	_ffs
	decl	%eax
	movl	%eax, 12(%rbx)
	movl	(%rbx), %eax
	decl	%eax
	movl	%eax, 16(%rbx)
	movl	%r14d, %edi
	callq	_ffs
	decl	%eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_CARD_TO_DEV
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_CARD_TO_DEV
	movl	12(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_CARD_TO_DEV
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_CARD_TO_DEV
	movl	16(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_CARD_TO_DEV
	movl	20(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_CARD_TO_DEV
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stripe_size is NOT a power of 2!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"_stripe.lower_mask   = x%016llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"_stripe.upper_shift  = x%016llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"_stripe.upper_mask   = x%016llx\n"

L_.str.4:                               ## @.str.4
	.asciz	"_stripe.target_mask  = x%016llx\n"

L_.str.5:                               ## @.str.5
	.asciz	"_stripe.target_shift = x%016llx\n"

	.no_dead_strip	_rsxx_dma_stripe_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsxx_dma_stripe_setup
_rsxx_dma_stripe_setup:                 ; @rsxx_dma_stripe_setup
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_is_power_of_2
	cbz	w0, LBB0_2
; %bb.1:
	sub	w8, w20, #1
	neg	w9, w20
	stp	w8, w9, [x19, #4]
	ldr	w0, [x19]
	bl	_ffs
	sub	w8, w0, #1
	ldr	w9, [x19]
	sub	w9, w9, #1
	stp	w8, w9, [x19, #12]
	mov	x0, x20
	bl	_ffs
	sub	w8, w0, #1
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_CARD_TO_DEV
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_CARD_TO_DEV
	ldr	w2, [x19, #12]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_CARD_TO_DEV
	ldr	w2, [x19, #8]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_CARD_TO_DEV
	ldr	w2, [x19, #16]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_CARD_TO_DEV
	ldr	w2, [x19, #20]
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_CARD_TO_DEV
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stripe_size is NOT a power of 2!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"_stripe.lower_mask   = x%016llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"_stripe.upper_shift  = x%016llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"_stripe.upper_mask   = x%016llx\n"

l_.str.4:                               ; @.str.4
	.asciz	"_stripe.target_mask  = x%016llx\n"

l_.str.5:                               ; @.str.5
	.asciz	"_stripe.target_shift = x%016llx\n"

	.no_dead_strip	_rsxx_dma_stripe_setup
.subsections_via_symbols
