	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_asuscom
_reset_asuscom:                         ## @reset_asuscom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ASUS_IPAC@GOTPCREL(%rip), %r14
	movl	12(%rdi), %edi
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movq	_IPAC_POTA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %ecx
	callq	_writereg
	jmp	LBB0_3
LBB0_2:
	movq	_ASUS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_byteout
LBB0_3:
	movl	$10, %edi
	callq	_mdelay
	movq	(%rbx), %rax
	movl	12(%rbx), %edi
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %esi
	movq	_IPAC_POTA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_writereg
	jmp	LBB0_6
LBB0_5:
	xorl	%esi, %esi
	callq	_byteout
LBB0_6:
	movl	$10, %edi
	callq	_mdelay
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.8:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_IPAC_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_writereg
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_IPAC_ACFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, %ecx
	callq	_writereg
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_IPAC_AOE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_writereg
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_IPAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$192, %ecx
	callq	_writereg
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_IPAC_PCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$18, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writereg                       ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_IPAC,8,3                  ## @ASUS_IPAC
	.comm	_IPAC_POTA2,4,2                 ## @IPAC_POTA2
	.comm	_ASUS_RESET,4,2                 ## @ASUS_RESET
	.comm	_IPAC_CONF,4,2                  ## @IPAC_CONF
	.comm	_IPAC_ACFG,4,2                  ## @IPAC_ACFG
	.comm	_IPAC_AOE,4,2                   ## @IPAC_AOE
	.comm	_IPAC_MASK,4,2                  ## @IPAC_MASK
	.comm	_IPAC_PCFG,4,2                  ## @IPAC_PCFG
	.no_dead_strip	_reset_asuscom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_asuscom
_reset_asuscom:                         ; @reset_asuscom
	.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
Lloh0:
	adrp	x20, _ASUS_IPAC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ASUS_IPAC@GOTPAGEOFF]
	ldr	x8, [x0]
	ldr	x9, [x20]
	ldr	w0, [x0, #12]
Lloh2:
	adrp	x21, _IPAC_POTA2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IPAC_POTA2@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
	ldr	w2, [x21]
	mov	w3, #32
	bl	_writereg
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _ASUS_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASUS_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_byteout
LBB0_3:
	mov	w0, #10
	bl	_mdelay
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w0, [x19, #12]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x19, #8]
	ldr	w2, [x21]
	mov	w3, #0
	bl	_writereg
	b	LBB0_6
LBB0_5:
	mov	w1, #0
	bl	_byteout
LBB0_6:
	mov	w0, #10
	bl	_mdelay
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldp	w1, w0, [x19, #8]
Lloh7:
	adrp	x8, _IPAC_CONF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPAC_CONF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_writereg
	ldp	w1, w0, [x19, #8]
Lloh10:
	adrp	x8, _IPAC_ACFG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPAC_ACFG@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w3, #255
	bl	_writereg
	ldp	w1, w0, [x19, #8]
Lloh13:
	adrp	x8, _IPAC_AOE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPAC_AOE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_writereg
	ldp	w1, w0, [x19, #8]
Lloh16:
	adrp	x8, _IPAC_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPAC_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w3, #192
	bl	_writereg
Lloh19:
	adrp	x8, _IPAC_PCFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IPAC_PCFG@GOTPAGEOFF]
	ldp	w1, w0, [x19, #8]
Lloh21:
	ldr	w2, [x8]
	mov	w3, #18
	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	_writereg
LBB0_8:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_IPAC,8,3                  ; @ASUS_IPAC
	.comm	_IPAC_POTA2,4,2                 ; @IPAC_POTA2
	.comm	_ASUS_RESET,4,2                 ; @ASUS_RESET
	.comm	_IPAC_CONF,4,2                  ; @IPAC_CONF
	.comm	_IPAC_ACFG,4,2                  ; @IPAC_ACFG
	.comm	_IPAC_AOE,4,2                   ; @IPAC_AOE
	.comm	_IPAC_MASK,4,2                  ; @IPAC_MASK
	.comm	_IPAC_PCFG,4,2                  ; @IPAC_PCFG
	.no_dead_strip	_reset_asuscom
.subsections_via_symbols
