	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __stmmac_test_loopback
___stmmac_test_loopback:                ## @__stmmac_test_loopback
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	$0, (%rax)
	leaq	32(%rax), %r12
	movq	%r12, %rdi
	callq	_init_completion
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%r13, %r15
	addq	$8, %r15
	movl	%eax, 24(%r13)
	movq	_stmmac_test_loopback_validate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movl	(%rbx), %eax
	movl	%eax, 16(%r13)
	movq	%r13, 8(%r13)
	movq	%r14, 40(%r13)
	cmpq	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_dev_add_pack
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_stmmac_test_get_udp_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movl	12(%r14), %esi
	movq	%rax, %rdi
	callq	_skb_set_queue_mapping
	movq	%rbx, %rdi
	callq	_dev_queue_xmit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	jne	LBB0_13
## %bb.8:
	movl	8(%r14), %esi
	testl	%esi, %esi
	jne	LBB0_10
## %bb.9:
	movq	_STMMAC_LB_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%r14)
LBB0_10:
	movq	%r12, %rdi
	callq	_wait_for_completion_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$0, (%r13)
	cmovnel	%ecx, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	cmpq	$0, (%r14)
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_dev_remove_pack
LBB0_13:
	movq	%r13, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_stmmac_test_loopback_validate,4,2 ## @stmmac_test_loopback_validate
	.comm	_STMMAC_LB_TIMEOUT,4,2          ## @STMMAC_LB_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	___stmmac_test_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __stmmac_test_loopback
___stmmac_test_loopback:                ; @__stmmac_test_loopback
	.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	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	str	wzr, [x0]
	add	x22, x0, #32
	mov	x0, x22
	bl	_init_completion
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	add	x21, x19, #8
	str	w0, [x19, #24]
Lloh6:
	adrp	x8, _stmmac_test_loopback_validate@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stmmac_test_loopback_validate@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x23]
	stp	w9, w8, [x19, #16]
	str	x19, [x19, #8]
	str	x20, [x19, #40]
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_dev_add_pack
LBB0_3:
	mov	x0, x23
	mov	x1, x20
	bl	_stmmac_test_get_udp_skb
	cbz	x0, LBB0_8
; %bb.4:
	mov	x23, x0
	ldr	w1, [x20, #12]
	bl	_skb_set_queue_mapping
	mov	x0, x23
	bl	_dev_queue_xmit
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.6:
	mov	w23, #0
	b	LBB0_11
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_dev_remove_pack
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x23
	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
	ret
LBB0_13:
	ldr	w1, [x20, #8]
	cbnz	w1, LBB0_15
; %bb.14:
Lloh15:
	adrp	x8, _STMMAC_LB_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STMMAC_LB_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	str	w1, [x20, #8]
LBB0_15:
	mov	x0, x22
	bl	_wait_for_completion_timeout
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w23, wzr, w9, ne
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_stmmac_test_loopback_validate,4,2 ; @stmmac_test_loopback_validate
	.comm	_STMMAC_LB_TIMEOUT,4,2          ; @STMMAC_LB_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	___stmmac_test_loopback
.subsections_via_symbols
