	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm3386_init_port               ## -- Begin function pm3386_init_port
	.p2align	4, 0x90
_pm3386_init_port:                      ## @pm3386_init_port
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	%edi, %ebx
	sarl	%ebx
	movl	$778, %esi                      ## imm = 0x30A
	movl	$256, %edx                      ## imm = 0x100
	callq	_pm3386_port_reg_read
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	movl	$777, %esi                      ## imm = 0x309
	movl	$256, %edx                      ## imm = 0x100
	callq	_pm3386_port_reg_read
	andl	$65280, %eax                    ## imm = 0xFF00
	cmpl	$20480, %eax                    ## imm = 0x5000
	jne	LBB0_3
## %bb.2:
	movl	%r14d, %edi
	movl	$776, %esi                      ## imm = 0x308
	movl	$256, %edx                      ## imm = 0x100
	callq	_pm3386_port_reg_read
	movl	%eax, %r15d
	movl	%r14d, %edi
	movl	$777, %esi                      ## imm = 0x309
	movl	$256, %edx                      ## imm = 0x100
	callq	_pm3386_port_reg_read
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	$778, %esi                      ## imm = 0x30A
	movl	$256, %edx                      ## imm = 0x100
	callq	_pm3386_port_reg_read
	movl	%eax, %edi
	callq	_swaph
	movl	%r14d, %edi
	movl	$776, %esi                      ## imm = 0x308
	movl	$256, %edx                      ## imm = 0x100
	movl	%eax, %ecx
	callq	_pm3386_port_reg_write
	movl	%r12d, %edi
	callq	_swaph
	movl	%r14d, %edi
	movl	$777, %esi                      ## imm = 0x309
	movl	$256, %edx                      ## imm = 0x100
	movl	%eax, %ecx
	callq	_pm3386_port_reg_write
	movl	%r15d, %edi
	callq	_swaph
	movl	%r14d, %edi
	movl	$778, %esi                      ## imm = 0x30A
	movl	$256, %edx                      ## imm = 0x100
	movl	%eax, %ecx
	callq	_pm3386_port_reg_write
LBB0_3:
	movl	%r14d, %edi
	movl	$1800, %esi                     ## imm = 0x708
	movl	$16, %edx
	movl	$53333, %ecx                    ## imm = 0xD055
	callq	_pm3386_port_reg_write
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movl	%r14d, %edi
	movl	$1800, %esi                     ## imm = 0x708
	movl	$16, %edx
	movl	$20565, %ecx                    ## imm = 0x5055
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$290, %esi                      ## imm = 0x122
	movl	$32, %edx
	movl	$2, %ecx
	callq	_pm3386_port_reg_write
	movl	%ebx, %edi
	movl	$259, %esi                      ## imm = 0x103
	movl	$3, %edx
	callq	_pm3386_reg_write
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	$259, %esi                      ## imm = 0x103
	callq	_pm3386_reg_read
	testb	$-128, %al
	je	LBB0_4
## %bb.5:
	movl	%r14d, %edi
	movl	$545, %esi                      ## imm = 0x221
	movl	$32, %edx
	movl	$7, %ecx
	callq	_pm3386_port_reg_write
	movl	%r14d, %ecx
	andb	$1, %cl
	movl	$4, %edx
	shll	%cl, %edx
	xorl	$13, %edx
	movl	%ebx, %edi
	movl	$515, %esi                      ## imm = 0x203
	callq	_pm3386_reg_write
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	$515, %esi                      ## imm = 0x203
	callq	_pm3386_reg_read
	notl	%eax
	testb	$12, %al
	jne	LBB0_6
## %bb.7:
	movl	%r14d, %edi
	movl	$770, %esi                      ## imm = 0x302
	movl	$256, %edx                      ## imm = 0x100
	movl	$275, %ecx                      ## imm = 0x113
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$769, %esi                      ## imm = 0x301
	movl	$256, %edx                      ## imm = 0x100
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$769, %esi                      ## imm = 0x301
	movl	$256, %edx                      ## imm = 0x100
	xorl	%ecx, %ecx
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$774, %esi                      ## imm = 0x306
	movl	$256, %edx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$784, %esi                      ## imm = 0x310
	movl	$256, %edx                      ## imm = 0x100
	movl	$9018, %ecx                     ## imm = 0x233A
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$822, %esi                      ## imm = 0x336
	movl	$256, %edx                      ## imm = 0x100
	movl	$9018, %ecx                     ## imm = 0x233A
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$796, %esi                      ## imm = 0x31C
	movl	$256, %edx                      ## imm = 0x100
	movl	$32, %ecx
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$792, %esi                      ## imm = 0x318
	movl	$256, %edx                      ## imm = 0x100
	movl	$3, %ecx
	callq	_pm3386_port_reg_write
	movl	%r14d, %edi
	movl	$792, %esi                      ## imm = 0x318
	movl	$256, %edx                      ## imm = 0x100
	movl	$2, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm3386_port_reg_write          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm3386_init_port               ; -- Begin function pm3386_init_port
	.p2align	2
_pm3386_init_port:                      ; @pm3386_init_port
	.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, x0
	asr	w20, w0, #1
	mov	w1, #778
	mov	w2, #256
	bl	_pm3386_port_reg_read
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #777
	mov	w2, #256
	bl	_pm3386_port_reg_read
	and	w8, w0, #0xff00
	cmp	w8, #5, lsl #12                 ; =20480
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #776
	mov	w2, #256
	bl	_pm3386_port_reg_read
	mov	x21, x0
	mov	x0, x19
	mov	w1, #777
	mov	w2, #256
	bl	_pm3386_port_reg_read
	mov	x22, x0
	mov	x0, x19
	mov	w1, #778
	mov	w2, #256
	bl	_pm3386_port_reg_read
	bl	_swaph
	mov	x3, x0
	mov	x0, x19
	mov	w1, #776
	mov	w2, #256
	bl	_pm3386_port_reg_write
	mov	x0, x22
	bl	_swaph
	mov	x3, x0
	mov	x0, x19
	mov	w1, #777
	mov	w2, #256
	bl	_pm3386_port_reg_write
	mov	x0, x21
	bl	_swaph
	mov	x3, x0
	mov	x0, x19
	mov	w1, #778
	mov	w2, #256
	bl	_pm3386_port_reg_write
LBB0_3:
	mov	x0, x19
	mov	w1, #1800
	mov	w2, #16
	mov	w3, #53333
	bl	_pm3386_port_reg_write
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	mov	w1, #1800
	mov	w2, #16
	mov	w3, #20565
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #290
	mov	w2, #32
	mov	w3, #2
	bl	_pm3386_port_reg_write
	mov	x0, x20
	mov	w1, #259
	mov	w2, #3
	bl	_pm3386_reg_write
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #259
	bl	_pm3386_reg_read
	tbz	w0, #7, LBB0_4
; %bb.5:
	mov	x0, x19
	mov	w1, #545
	mov	w2, #32
	mov	w3, #7
	bl	_pm3386_port_reg_write
	and	w8, w19, #0x1
	mov	w9, #4
	lsl	w8, w9, w8
	mov	w9, #13
	eor	w2, w8, w9
	mov	x0, x20
	mov	w1, #515
	bl	_pm3386_reg_write
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #515
	bl	_pm3386_reg_read
	mvn	w8, w0
	tst	w8, #0xc
	b.ne	LBB0_6
; %bb.7:
	mov	x0, x19
	mov	w1, #770
	mov	w2, #256
	mov	w3, #275
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #769
	mov	w2, #256
	mov	w3, #32768
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #769
	mov	w2, #256
	mov	w3, #0
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #774
	mov	w2, #256
	mov	w3, #256
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #784
	mov	w2, #256
	mov	w3, #9018
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #822
	mov	w2, #256
	mov	w3, #9018
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #796
	mov	w2, #256
	mov	w3, #32
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #792
	mov	w2, #256
	mov	w3, #3
	bl	_pm3386_port_reg_write
	mov	x0, x19
	mov	w1, #792
	mov	w2, #256
	mov	w3, #2
	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	_pm3386_port_reg_write
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
