	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_sd_scan_scratchpad
_tg3_sd_scan_scratchpad:                ## @tg3_sd_scan_scratchpad
	.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	_TG3_SD_NUM_RECS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	movq	_TG3_OCIR_LEN@GOTPCREL(%rip), %r13
	movq	_TG3_OCIR_SIG_MAGIC@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	addq	$16, %rbx
	movq	_TG3_SD_NUM_RECS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movl	%ecx, %edx
	imull	%r12d, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tg3_ape_scratchpad_read
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TG3_OCIR_FLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_5
	jmp	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_SD_NUM_RECS,4,2            ## @TG3_SD_NUM_RECS
	.comm	_TG3_OCIR_LEN,4,2               ## @TG3_OCIR_LEN
	.comm	_TG3_OCIR_SIG_MAGIC,8,3         ## @TG3_OCIR_SIG_MAGIC
	.comm	_TG3_OCIR_FLAG_ACTIVE,4,2       ## @TG3_OCIR_FLAG_ACTIVE
	.no_dead_strip	_tg3_sd_scan_scratchpad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_sd_scan_scratchpad
_tg3_sd_scan_scratchpad:                ; @tg3_sd_scan_scratchpad
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _TG3_SD_NUM_RECS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TG3_SD_NUM_RECS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w22, #0
Lloh2:
	adrp	x23, _TG3_OCIR_LEN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TG3_OCIR_LEN@GOTPAGEOFF]
Lloh4:
	adrp	x24, _TG3_OCIR_SIG_MAGIC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TG3_OCIR_SIG_MAGIC@GOTPAGEOFF]
Lloh6:
	adrp	x25, _TG3_OCIR_FLAG_ACTIVE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _TG3_OCIR_FLAG_ACTIVE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	add	x19, x19, #16
	ldr	w8, [x21]
	cmp	w22, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x23]
	mul	w2, w3, w22
	mov	x0, x20
	mov	x1, x19
	bl	_tg3_ape_scratchpad_read
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_3
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_SD_NUM_RECS,4,2            ; @TG3_SD_NUM_RECS
	.comm	_TG3_OCIR_LEN,4,2               ; @TG3_OCIR_LEN
	.comm	_TG3_OCIR_SIG_MAGIC,8,3         ; @TG3_OCIR_SIG_MAGIC
	.comm	_TG3_OCIR_FLAG_ACTIVE,4,2       ; @TG3_OCIR_FLAG_ACTIVE
	.no_dead_strip	_tg3_sd_scan_scratchpad
.subsections_via_symbols
