	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dma_get_max_width
_stm32_dma_get_max_width:               ## @stm32_dma_get_max_width
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_STM32_DMA_FIFO_THRESHOLD_FULL@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DMA_SLAVE_BUSWIDTH_2_BYTES@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	_DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %r8
	shrq	$32, %r8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ecx
	cmpq	%rdi, %rcx
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r8, %r8
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%esi, %ecx
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	shrl	%ecx
	jmp	LBB0_4
LBB0_11:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_DMA_FIFO_THRESHOLD_FULL,8,3 ## @STM32_DMA_FIFO_THRESHOLD_FULL
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,4,2 ## @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_DMA_SLAVE_BUSWIDTH_2_BYTES,4,2 ## @DMA_SLAVE_BUSWIDTH_2_BYTES
	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,4,2  ## @DMA_SLAVE_BUSWIDTH_1_BYTE
	.no_dead_strip	_stm32_dma_get_max_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_dma_get_max_width
_stm32_dma_get_max_width:               ; @stm32_dma_get_max_width
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _STM32_DMA_FIFO_THRESHOLD_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_DMA_FIFO_THRESHOLD_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGEOFF]
Lloh5:
	adrp	x10, _DMA_SLAVE_BUSWIDTH_2_BYTES@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DMA_SLAVE_BUSWIDTH_2_BYTES@GOTPAGEOFF]
	cmp	x8, x1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w9
	b.ls	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ubfx	x8, x8, #1, #31
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, w8
	cmp	x8, x0
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sdiv	x10, x0, x8
	msub	x10, x10, x8, x0
	cmp	x10, #0
	ccmp	w8, w9, #0, ne
	b.hi	LBB0_2
LBB0_5:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_DMA_FIFO_THRESHOLD_FULL,8,3 ; @STM32_DMA_FIFO_THRESHOLD_FULL
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,4,2 ; @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_DMA_SLAVE_BUSWIDTH_2_BYTES,4,2 ; @DMA_SLAVE_BUSWIDTH_2_BYTES
	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,4,2  ; @DMA_SLAVE_BUSWIDTH_1_BYTE
	.no_dead_strip	_stm32_dma_get_max_width
.subsections_via_symbols
