	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm3386_reset                   ## -- Begin function pm3386_reset
	.p2align	4, 0x90
_pm3386_reset:                          ## @pm3386_reset
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_pm3386_secondary_present
	movl	%eax, %r15d
	leaq	-112(%rbp), %rsi
	xorl	%edi, %edi
	callq	_pm3386_get_mac
	leaq	-88(%rbp), %r14
	movl	$1, %ebx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_pm3386_get_mac
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rsi
	movl	$2, %edi
	callq	_pm3386_get_mac
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$96, %edx
	callq	_pm3386_reg_write
	movl	$1, %edi
	movl	$2, %esi
	movl	$96, %edx
	callq	_pm3386_reg_write
	movl	$1, %edi
	callq	_mdelay
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$98, %edx
	callq	_pm3386_reg_write
	movl	$1, %edi
	movl	$2, %esi
	movl	$98, %edx
	callq	_pm3386_reg_write
	movl	$10, %edi
	callq	_mdelay
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$99, %edx
	callq	_pm3386_reg_write
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$96, %edx
	callq	_pm3386_reg_write
	movl	$1, %edi
	callq	_mdelay
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$98, %edx
	callq	_pm3386_reg_write
	movl	$10, %edi
	callq	_mdelay
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %edi
	movl	$2, %esi
	movl	$99, %edx
	callq	_pm3386_reg_write
	movl	$10, %edi
	callq	_mdelay
	xorl	%r12d, %r12d
	leaq	-112(%rbp), %rsi
	xorl	%edi, %edi
	callq	_pm3386_set_mac
	movl	$1, %ebx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_pm3386_set_mac
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	leaq	-64(%rbp), %rsi
	movl	$2, %edi
	callq	_pm3386_set_mac
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_pm3386_set_carrier
	movl	$1, %r12d
	movl	$2, %ebx
LBB0_5:
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_pm3386_set_carrier
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_pm3386_set_carrier
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm3386_reset                   ; -- Begin function pm3386_reset
	.p2align	2
_pm3386_reset:                          ; @pm3386_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_pm3386_secondary_present
	mov	x19, x0
	mov	x21, sp
	mov	x1, sp
	mov	w0, #0
	bl	_pm3386_get_mac
	add	x20, x21, #24
	mov	w0, #1
	mov	x1, x20
	bl	_pm3386_get_mac
	cbz	w19, LBB0_2
; %bb.1:
	add	x1, x21, #48
	mov	w0, #2
	bl	_pm3386_get_mac
	mov	w0, #0
	mov	w1, #2
	mov	w2, #96
	bl	_pm3386_reg_write
	mov	w21, #1
	mov	w0, #1
	mov	w1, #2
	mov	w2, #96
	bl	_pm3386_reg_write
	mov	w0, #1
	bl	_mdelay
	mov	w0, #0
	mov	w1, #2
	mov	w2, #98
	bl	_pm3386_reg_write
	mov	w0, #1
	mov	w1, #2
	mov	w2, #98
	bl	_pm3386_reg_write
	mov	w0, #10
	bl	_mdelay
	mov	w0, #0
	mov	w1, #2
	mov	w2, #99
	bl	_pm3386_reg_write
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	mov	w1, #2
	mov	w2, #96
	bl	_pm3386_reg_write
	mov	w0, #1
	bl	_mdelay
	mov	w0, #0
	mov	w1, #2
	mov	w2, #98
	bl	_pm3386_reg_write
	mov	w0, #10
	bl	_mdelay
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	mov	w1, #2
	mov	w2, #99
	bl	_pm3386_reg_write
	mov	w0, #10
	bl	_mdelay
	mov	x22, sp
	mov	x1, sp
	mov	w0, #0
	bl	_pm3386_set_mac
	mov	w21, #1
	mov	w0, #1
	mov	x1, x20
	bl	_pm3386_set_mac
	cbz	w19, LBB0_5
; %bb.4:
	add	x1, x22, #48
	mov	w21, #2
	mov	w0, #2
	bl	_pm3386_set_mac
	mov	w0, #0
	mov	w1, #0
	bl	_pm3386_set_carrier
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	mov	w1, #0
	bl	_pm3386_set_carrier
	mov	x0, x21
	mov	w1, #0
	bl	_pm3386_set_carrier
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
