	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm47xx_fill_sprom             ## -- Begin function bcm47xx_fill_sprom
	.p2align	4, 0x90
_bcm47xx_fill_sprom:                    ## @bcm47xx_fill_sprom
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_bcm47xx_fill_sprom_ethernet
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_bcm47xx_fill_board_data
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_nvram_read_u8
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_nvram_read_alpha2
	movl	(%rbx), %eax
	cmpl	$3, %eax
	jl	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rdx
	leaq	4(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %r8d
	callq	_nvram_read_leddc
	movl	(%rbx), %eax
LBB0_2:
	leal	-8(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.3:
	addl	$-4, %eax
	cmpl	$1, %eax
	ja	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_bcm47xx_fill_sprom_path_r4589
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_bcm47xx_fill_sprom_path_r45
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_bcm47xx_fill_sprom_path_r4589
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm47xx_sprom_fill_auto        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sromrev"

L_.str.1:                               ## @.str.1
	.asciz	"ccode"

L_.str.2:                               ## @.str.2
	.asciz	"leddc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm47xx_fill_sprom             ; -- Begin function bcm47xx_fill_sprom
	.p2align	2
_bcm47xx_fill_sprom:                    ; @bcm47xx_fill_sprom
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_bcm47xx_fill_sprom_ethernet
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bcm47xx_fill_board_data
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x3, x21
	mov	w4, #0
	mov	x5, x19
	bl	_nvram_read_u8
	ldr	w2, [x21, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_nvram_read_alpha2
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	add	x2, x21, #8
	add	x3, x21, #4
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_nvram_read_leddc
	ldr	w8, [x21]
LBB0_2:
	sub	w9, w8, #8
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.3:
	sub	w8, w8, #4
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bcm47xx_fill_sprom_path_r4589
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bcm47xx_fill_sprom_path_r45
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bcm47xx_fill_sprom_path_r4589
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_bcm47xx_sprom_fill_auto
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sromrev"

l_.str.1:                               ; @.str.1
	.asciz	"ccode"

l_.str.2:                               ; @.str.2
	.asciz	"leddc"

.subsections_via_symbols
