	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_media
_test_media:                            ## @test_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	%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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	jns	LBB0_6
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movslq	16(%rbp), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdi
	shrq	$63, %rdi
	sarq	$37, %rax
	addl	%edi, %eax
	movl	%eax, (%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_reset_init_sia
LBB0_3:
	movq	_DE4X5_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_outl
	movq	_DE4X5_STS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inl
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_outl
	movq	8(%rbx), %rax
	movq	_DC21041@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
LBB0_5:
	movq	_DE4X5_SISR@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inl
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_outl
LBB0_6:
	movq	_DE4X5_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inl
	movl	%eax, %ecx
	movq	_TIMER_CB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	notl	%eax
	andl	%ecx, %eax
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_7
LBB0_9:
	movl	$-1, (%rbx)
	jmp	LBB0_10
LBB0_7:
	decl	(%rbx)
	je	LBB0_9
## %bb.8:
	movl	(%rdx), %eax
	orl	$100, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DE4X5_IMR,4,2                  ## @DE4X5_IMR
	.comm	_DE4X5_STS,4,2                  ## @DE4X5_STS
	.comm	_DC21041,8,3                    ## @DC21041
	.comm	_DE4X5_SISR,4,2                 ## @DE4X5_SISR
	.comm	_TIMER_CB,4,2                   ## @TIMER_CB
	.no_dead_strip	_test_media
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_media
_test_media:                            ; @test_media
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x25, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x27, _DE4X5_STS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DE4X5_STS@GOTPAGEOFF]
	tbz	w8, #31, LBB0_6
; %bb.1:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w26, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_reset_init_sia
LBB0_3:
Lloh2:
	adrp	x8, _DE4X5_IMR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DE4X5_IMR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_outl
	ldr	w0, [x27]
	bl	_inl
	ldr	w1, [x27]
	bl	_outl
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _DC21041@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DC21041@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_5:
Lloh8:
	adrp	x21, _DE4X5_SISR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DE4X5_SISR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_inl
	ldr	w1, [x21]
	bl	_outl
LBB0_6:
	ldr	w0, [x27]
	bl	_inl
Lloh10:
	adrp	x8, _TIMER_CB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIMER_CB@GOTPAGEOFF]
	ldr	w9, [x8]
	bic	w0, w0, w9
	tst	w0, w20
	b.eq	LBB0_8
LBB0_7:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	ldr	w9, [x19]
	subs	w9, w9, #1
	str	w9, [x19]
	b.eq	LBB0_7
; %bb.9:
	ldr	w8, [x8]
	mov	w9, #100
	orr	w0, w8, w9
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DE4X5_IMR,4,2                  ; @DE4X5_IMR
	.comm	_DE4X5_STS,4,2                  ; @DE4X5_STS
	.comm	_DC21041,8,3                    ; @DC21041
	.comm	_DE4X5_SISR,4,2                 ; @DE4X5_SISR
	.comm	_TIMER_CB,4,2                   ; @TIMER_CB
	.no_dead_strip	_test_media
.subsections_via_symbols
