	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ping_media
_ping_media:                            ## @ping_media
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	cmpl	$0, (%rax)
	jns	LBB0_5
## %bb.1:
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	movq	16(%r15), %rax
	movq	%rax, 8(%r15)
	movl	40(%r15), %esi
	movq	_TD_LS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TD_FS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$4, %edx
	movl	$1, %ecx
	movq	%r14, %rdi
	callq	_load_packet
	movq	16(%r15), %rax
	incq	%rax
	movslq	24(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	%rdx, 16(%r15)
	movq	_POLL_DEMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DE4X5_TPD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outl
LBB0_5:
	movq	_DE4X5_SISR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inl
	movl	%eax, %ebx
	movq	_SISR_NCR@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_9
## %bb.6:
	movq	8(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	js	LBB0_7
LBB0_9:
	testl	%ebx, (%r14)
	jne	LBB0_12
## %bb.10:
	movq	8(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_le32_to_cpu
	movq	_T_OWN@GOTPCREL(%rip), %rcx
	movq	_TD_ES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	jne	LBB0_13
LBB0_12:
	movl	$1, %eax
LBB0_13:
	movl	$-1, (%r15)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	decl	(%r15)
	je	LBB0_9
## %bb.8:
	movq	_TIMER_CB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$100, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_LS,4,2                      ## @TD_LS
	.comm	_TD_FS,4,2                      ## @TD_FS
	.comm	_POLL_DEMAND,4,2                ## @POLL_DEMAND
	.comm	_DE4X5_TPD,4,2                  ## @DE4X5_TPD
	.comm	_DE4X5_SISR,4,2                 ## @DE4X5_SISR
	.comm	_SISR_NCR,4,2                   ## @SISR_NCR
	.comm	_TIMER_CB,4,2                   ## @TIMER_CB
	.comm	_T_OWN,4,2                      ## @T_OWN
	.comm	_TD_ES,4,2                      ## @TD_ES
	.no_dead_strip	_ping_media
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ping_media
_ping_media:                            ; @ping_media
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0]
	tbz	w8, #31, LBB0_2
; %bb.1:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #16]
	str	x8, [x19, #8]
	ldr	w1, [x19, #40]
Lloh0:
	adrp	x8, _TD_LS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TD_LS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TD_FS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TD_FS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w2, w8, #0x4
	mov	x0, x20
	mov	w3, #1
	bl	_load_packet
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	ldrsw	x9, [x19, #24]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x19, #16]
Lloh6:
	adrp	x8, _POLL_DEMAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLL_DEMAND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DE4X5_TPD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DE4X5_TPD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_outl
LBB0_2:
Lloh12:
	adrp	x8, _DE4X5_SISR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DE4X5_SISR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_inl
	mov	x20, x0
Lloh15:
	adrp	x21, _SISR_NCR@GOTPAGE
Lloh16:
	ldr	x21, [x21, _SISR_NCR@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	tbnz	w0, #31, LBB0_9
LBB0_4:
	ldr	w8, [x21]
	tst	w8, w20
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
Lloh17:
	adrp	x8, _T_OWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _T_OWN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _TD_ES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TD_ES@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_11
LBB0_6:
	mov	w0, #1
LBB0_7:
	mov	w8, #-1
	str	w8, [x19]
LBB0_8:
	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
LBB0_9:
	ldr	w8, [x19]
	subs	w8, w8, #1
	str	w8, [x19]
	b.eq	LBB0_4
; %bb.10:
Lloh23:
	adrp	x8, _TIMER_CB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TIMER_CB@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	w9, #100
	orr	w0, w8, w9
	b	LBB0_8
LBB0_11:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.12:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_LS,4,2                      ; @TD_LS
	.comm	_TD_FS,4,2                      ; @TD_FS
	.comm	_POLL_DEMAND,4,2                ; @POLL_DEMAND
	.comm	_DE4X5_TPD,4,2                  ; @DE4X5_TPD
	.comm	_DE4X5_SISR,4,2                 ; @DE4X5_SISR
	.comm	_SISR_NCR,4,2                   ; @SISR_NCR
	.comm	_TIMER_CB,4,2                   ; @TIMER_CB
	.comm	_T_OWN,4,2                      ; @T_OWN
	.comm	_TD_ES,4,2                      ; @TD_ES
	.no_dead_strip	_ping_media
.subsections_via_symbols
