	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_dma_operation_mode
_stmmac_dma_operation_mode:             ## @stmmac_dma_operation_mode
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %rsi
	movl	(%rsi), %ebx
	movl	4(%rsi), %edi
	movl	8(%rsi), %eax
	movl	12(%rsi), %ecx
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%ecx, %ecx
	je	LBB0_3
LBB0_4:
	cltd
	idivl	%ebx
	movl	%eax, %r12d
	movl	%ecx, %eax
	cltd
	idivl	%edi
	cmpq	$0, 48(%rsi)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.5:
	movq	_tc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	testl	%ebx, %ebx
	jg	LBB0_11
	jmp	LBB0_13
LBB0_1:
	movl	32(%r15), %eax
	testl	%ecx, %ecx
	jne	LBB0_4
LBB0_3:
	movl	36(%r15), %ecx
	jmp	LBB0_4
LBB0_6:
	cmpq	$0, 40(%rsi)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 32(%rsi)
	je	LBB0_9
LBB0_8:
	movq	_SF_DMA_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 24(%r15)
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r13d
	testl	%ebx, %ebx
	jle	LBB0_13
LBB0_11:
	decq	%rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %rax
	movl	(%rax,%r14,4), %r9d
	movl	(%r15), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_stmmac_dma_rx_mode
	movl	(%r15), %esi
	movl	16(%r15), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_stmmac_set_dma_bfsize
	cmpq	%r14, %rbx
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %rsi
	incq	%r14
	jmp	LBB0_12
LBB0_9:
	movq	_tc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SF_DMA_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%ebx, %ebx
	jg	LBB0_11
LBB0_13:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testl	%r14d, %r14d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	16(%rax), %rax
	movl	(%rax,%rbx,4), %r9d
	movl	(%r15), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_stmmac_dma_tx_mode
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tc,4,2                         ## @tc
	.comm	_SF_DMA_MODE,8,3                ## @SF_DMA_MODE
	.no_dead_strip	_stmmac_dma_operation_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_dma_operation_mode
_stmmac_dma_operation_mode:             ; @stmmac_dma_operation_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	w9, w25, [x8, #8]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	w10, [x8]
	cbz	w25, LBB0_5
LBB0_2:
	ldr	w24, [x8, #4]
	ldr	x11, [x8, #48]
	cbz	x11, LBB0_6
; %bb.3:
Lloh0:
	adrp	x11, _tc@GOTPAGE
Lloh1:
	ldr	x11, [x11, _tc@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x11]
	b	LBB0_9
LBB0_4:
	ldr	w9, [x19, #32]
	ldr	w10, [x8]
	cbnz	w25, LBB0_2
LBB0_5:
	ldr	w25, [x19, #36]
	b	LBB0_2
LBB0_6:
	ldr	x11, [x8, #40]
	cbnz	x11, LBB0_8
; %bb.7:
	ldr	x11, [x8, #32]
	cbz	x11, LBB0_13
LBB0_8:
Lloh3:
	adrp	x11, _SF_DMA_MODE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SF_DMA_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x11]
	str	x20, [x19, #24]
LBB0_9:
	mov	x21, x20
	cmp	w10, #1
	b.lt	LBB0_14
LBB0_10:
	mov	x22, #0
	sub	x26, x10, #1
	sdiv	w23, w9, w10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #24]
	ldr	w5, [x8, x22, lsl #2]
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_stmmac_dma_rx_mode
	ldr	w1, [x19]
	ldr	w2, [x19, #16]
	mov	x0, x19
	mov	x3, x22
	bl	_stmmac_set_dma_bfsize
	cmp	x26, x22
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	add	x22, x22, #1
	b	LBB0_11
LBB0_13:
Lloh6:
	adrp	x11, _tc@GOTPAGE
Lloh7:
	ldr	x11, [x11, _tc@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x11]
Lloh9:
	adrp	x11, _SF_DMA_MODE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SF_DMA_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x11]
	cmp	w10, #1
	b.ge	LBB0_10
LBB0_14:
	cmp	w24, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x21, #0
	sdiv	w22, w25, w24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	w5, [x8, x21, lsl #2]
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_stmmac_dma_tx_mode
	add	x21, x21, #1
	cmp	x24, x21
	b.ne	LBB0_16
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_tc,4,2                         ; @tc
	.comm	_SF_DMA_MODE,8,3                ; @SF_DMA_MODE
	.no_dead_strip	_stmmac_dma_operation_mode
.subsections_via_symbols
