	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_set_dma_operation_mode
_stmmac_set_dma_operation_mode:         ## @stmmac_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r10
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rdx
	movl	16(%rdx), %eax
	movl	20(%rdx), %r11d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
LBB0_2:
	movq	32(%rdx), %rdi
	movq	24(%rdx), %rsi
	movq	(%rdx), %rcx
	testl	%r11d, %r11d
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %r11d
LBB0_4:
	movl	(%rdi,%r15,4), %r9d
	movl	(%rsi,%r15,4), %r12d
	movq	8(%rdx), %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rsi
	orq	%rcx, %rsi
	shrq	$32, %rsi
	je	LBB0_5
## %bb.6:
	movq	%rdx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r8
	jmp	LBB0_7
LBB0_5:
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r8d
LBB0_7:
	movslq	%r11d, %rax
	movq	%rax, %rcx
	orq	%rdi, %rcx
	shrq	$32, %rcx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %r13
	jmp	LBB0_10
LBB0_8:
	movl	%r11d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r13d
LBB0_10:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r10, %rdx
	movq	%r15, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_stmmac_dma_rx_mode
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stmmac_dma_tx_mode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stmmac_set_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_set_dma_operation_mode
_stmmac_set_dma_operation_mode:         ; @stmmac_set_dma_operation_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x10, [x0, #16]
	lsl	x8, x3, #2
	ldp	x11, x9, [x10, #24]
	ldr	w5, [x9, x8]
	ldr	w22, [x11, x8]
	ldp	w9, w8, [x10, #16]
	cbz	w9, LBB0_3
; %bb.1:
	ldp	x11, x10, [x10]
	cbz	w8, LBB0_4
LBB0_2:
	sxtw	x9, w9
	udiv	x4, x9, x11
	sxtw	x8, w8
	ldr	w1, [x21]
	udiv	x23, x8, x10
	mov	x0, x21
	mov	x3, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_stmmac_dma_rx_mode
	ldr	w1, [x21]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x23
	mov	x5, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_stmmac_dma_tx_mode
LBB0_3:
	ldr	w9, [x21, #4]
	ldp	x11, x10, [x10]
	cbnz	w8, LBB0_2
LBB0_4:
	ldr	w8, [x21, #8]
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stmmac_set_dma_operation_mode
.subsections_via_symbols
