	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	(%rcx), %rdx
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rsi
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	8(%rcx), %edi
	cmpq	(%rsi), %rdx
	jg	LBB0_5
## %bb.3:
	movq	_tx_coe@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_SF_DMA_MODE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rdx, %rsi
	callq	*%rax
	movq	(%r14), %rax
	movq	_tc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_HW_CSUM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	8(%rax), %edi
	movq	_tc@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	*(%rcx)
	jmp	LBB0_6
LBB0_5:
	movq	_tc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_SF_DMA_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	callq	*%rax
LBB0_6:
	movq	_NO_HW_CSUM@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_tx_coe@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tc,8,3                         ## @tc
	.comm	_NO_HW_CSUM,8,3                 ## @NO_HW_CSUM
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.comm	_tx_coe,8,3                     ## @tx_coe
	.comm	_SF_DMA_MODE,8,3                ## @SF_DMA_MODE
	.comm	_HW_CSUM,8,3                    ## @HW_CSUM
	.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	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	x19, x0
	ldr	w8, [x0, #24]
Lloh0:
	adrp	x20, _tx_coe@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tx_coe@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x9]
Lloh2:
	adrp	x11, _ETH_DATA_LEN@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	ldr	x12, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x9, #8]
	cmp	x10, x11
	ccmp	x12, #0, #4, le
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x9, _tc@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tc@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x9]
Lloh8:
	adrp	x9, _SF_DMA_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SF_DMA_MODE@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x9]
	b	LBB0_4
LBB0_3:
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x9, #8]
Lloh11:
	adrp	x9, _tc@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tc@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x9]
	mov	x2, #0
LBB0_4:
	blr	x8
Lloh14:
	adrp	x8, _NO_HW_CSUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NO_HW_CSUM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x21, _SF_DMA_MODE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _SF_DMA_MODE@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x2, x1
	blr	x8
	ldr	x8, [x21]
Lloh18:
	adrp	x9, _tc@GOTPAGE
Lloh19:
	ldr	x9, [x9, _tc@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
Lloh21:
	adrp	x8, _HW_CSUM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HW_CSUM@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
	str	x8, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_tc,8,3                         ; @tc
	.comm	_NO_HW_CSUM,8,3                 ; @NO_HW_CSUM
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.comm	_tx_coe,8,3                     ; @tx_coe
	.comm	_SF_DMA_MODE,8,3                ; @SF_DMA_MODE
	.comm	_HW_CSUM,8,3                    ; @HW_CSUM
	.no_dead_strip	_stmmac_dma_operation_mode
.subsections_via_symbols
