	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm3510_init_cold
_bcm3510_init_cold:                     ## @bcm3510_init_cold
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdx
	movl	$162, %esi
	callq	_bcm3510_readB
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	cmpq	$0, -16(%rbp)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_info
	movq	%rbx, %rdi
	callq	_bcm3510_reset
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_deb_info
	movq	$0, -24(%rbp)
	movq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$46, %esi
	xorl	%edx, %edx
	callq	_bcm3510_writeB
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_deb_info
	movq	%rbx, %rdi
	callq	_bcm3510_download_firmware
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_bcm3510_clear_reset
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP is already running - firmware already loaded.\n"

L_.str.1:                               ## @.str.1
	.asciz	"reset?\n"

L_.str.2:                               ## @.str.2
	.asciz	"tristate?\n"

L_.str.3:                               ## @.str.3
	.asciz	"firmware?\n"

	.no_dead_strip	_bcm3510_init_cold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm3510_init_cold
_bcm3510_init_cold:                     ; @bcm3510_init_cold
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x2, sp
	mov	w1, #162
	bl	_bcm3510_readB
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	mov	x0, x19
	bl	_bcm3510_reset
	tbnz	w0, #31, LBB0_3
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
	str	xzr, [sp]
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	w1, #46
	mov	x2, #0
	bl	_bcm3510_writeB
	tbnz	w0, #31, LBB0_3
; %bb.6:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_info
	mov	x0, x19
	bl	_bcm3510_download_firmware
	tbnz	w0, #31, LBB0_3
; %bb.7:
	mov	x0, x19
	bl	_bcm3510_clear_reset
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP is already running - firmware already loaded.\n"

l_.str.1:                               ; @.str.1
	.asciz	"reset?\n"

l_.str.2:                               ; @.str.2
	.asciz	"tristate?\n"

l_.str.3:                               ; @.str.3
	.asciz	"firmware?\n"

	.no_dead_strip	_bcm3510_init_cold
.subsections_via_symbols
