	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xway_stp_hw_init
_xway_stp_hw_init:                      ## @xway_stp_hw_init
	.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
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	_XWAY_STP_AR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_xway_stp_w32
	movl	24(%rbx), %edi
	movq	_XWAY_STP_CPU0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_xway_stp_w32
	movl	24(%rbx), %edi
	movq	_XWAY_STP_CPU1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_xway_stp_w32
	movl	24(%rbx), %edi
	movq	_XWAY_STP_CON_SWU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XWAY_STP_CON0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_xway_stp_w32
	movl	24(%rbx), %edi
	movq	_XWAY_STP_CON1@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_xway_stp_w32
	movl	(%rbx), %edx
	movl	24(%rbx), %edi
	movq	_XWAY_STP_EDGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	callq	_xway_stp_w32_mask
	movl	4(%rbx), %edx
	movl	24(%rbx), %edi
	movq	_XWAY_STP_GROUP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	callq	_xway_stp_w32_mask
	movl	8(%rbx), %edx
	movl	24(%rbx), %edi
	movq	_XWAY_STP_ADSL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XWAY_STP_ADSL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	shll	%cl, %edx
	movl	(%r15), %ecx
	callq	_xway_stp_w32_mask
	movl	12(%rbx), %edx
	movl	24(%rbx), %edi
	movq	_XWAY_STP_PHY_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_XWAY_STP_PHY1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	shll	%cl, %edx
	movl	(%r15), %ecx
	callq	_xway_stp_w32_mask
	movl	16(%rbx), %edx
	movl	24(%rbx), %edi
	movl	(%r12), %esi
	movq	_XWAY_STP_PHY2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	shll	%cl, %edx
	movl	(%r14), %ecx
	callq	_xway_stp_w32_mask
	movl	12(%rbx), %eax
	movl	16(%rbx), %ecx
	shll	$5, %ecx
	shll	$2, %eax
	orl	%ecx, %eax
	orl	8(%rbx), %eax
	movl	%eax, 20(%rbx)
	je	LBB0_1
## %bb.2:
	movl	24(%rbx), %edi
	movq	_XWAY_STP_UPD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XWAY_STP_UPD_FPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xway_stp_w32_mask              ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XWAY_STP_AR,4,2                ## @XWAY_STP_AR
	.comm	_XWAY_STP_CPU0,4,2              ## @XWAY_STP_CPU0
	.comm	_XWAY_STP_CPU1,4,2              ## @XWAY_STP_CPU1
	.comm	_XWAY_STP_CON_SWU,4,2           ## @XWAY_STP_CON_SWU
	.comm	_XWAY_STP_CON0,4,2              ## @XWAY_STP_CON0
	.comm	_XWAY_STP_CON1,4,2              ## @XWAY_STP_CON1
	.comm	_XWAY_STP_EDGE_MASK,4,2         ## @XWAY_STP_EDGE_MASK
	.comm	_XWAY_STP_GROUP_MASK,4,2        ## @XWAY_STP_GROUP_MASK
	.comm	_XWAY_STP_ADSL_MASK,4,2         ## @XWAY_STP_ADSL_MASK
	.comm	_XWAY_STP_ADSL_SHIFT,4,2        ## @XWAY_STP_ADSL_SHIFT
	.comm	_XWAY_STP_PHY_MASK,4,2          ## @XWAY_STP_PHY_MASK
	.comm	_XWAY_STP_PHY1_SHIFT,4,2        ## @XWAY_STP_PHY1_SHIFT
	.comm	_XWAY_STP_PHY2_SHIFT,4,2        ## @XWAY_STP_PHY2_SHIFT
	.comm	_XWAY_STP_UPD_MASK,4,2          ## @XWAY_STP_UPD_MASK
	.comm	_XWAY_STP_UPD_FPI,4,2           ## @XWAY_STP_UPD_FPI
	.no_dead_strip	_xway_stp_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xway_stp_hw_init
_xway_stp_hw_init:                      ; @xway_stp_hw_init
	.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
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _XWAY_STP_AR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XWAY_STP_AR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_xway_stp_w32
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _XWAY_STP_CPU0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XWAY_STP_CPU0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_xway_stp_w32
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x8, _XWAY_STP_CPU1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XWAY_STP_CPU1@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_xway_stp_w32
	ldr	w0, [x19, #24]
Lloh9:
	adrp	x8, _XWAY_STP_CON_SWU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XWAY_STP_CON_SWU@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x21, _XWAY_STP_CON0@GOTPAGE
Lloh13:
	ldr	x21, [x21, _XWAY_STP_CON0@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_xway_stp_w32
	ldr	w0, [x19, #24]
Lloh14:
	adrp	x20, _XWAY_STP_CON1@GOTPAGE
Lloh15:
	ldr	x20, [x20, _XWAY_STP_CON1@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_xway_stp_w32
	ldr	w0, [x19, #24]
Lloh16:
	adrp	x8, _XWAY_STP_EDGE_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XWAY_STP_EDGE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w3, [x21]
	bl	_xway_stp_w32_mask
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x8, _XWAY_STP_GROUP_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XWAY_STP_GROUP_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	ldr	w3, [x20]
	bl	_xway_stp_w32_mask
	ldr	w0, [x19, #24]
Lloh22:
	adrp	x8, _XWAY_STP_ADSL_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XWAY_STP_ADSL_MASK@GOTPAGEOFF]
Lloh24:
	adrp	x9, _XWAY_STP_ADSL_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _XWAY_STP_ADSL_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	ldr	w8, [x19, #8]
	lsl	w2, w8, w9
	ldr	w3, [x21]
	bl	_xway_stp_w32_mask
	ldr	w0, [x19, #24]
Lloh28:
	adrp	x22, _XWAY_STP_PHY_MASK@GOTPAGE
Lloh29:
	ldr	x22, [x22, _XWAY_STP_PHY_MASK@GOTPAGEOFF]
Lloh30:
	adrp	x8, _XWAY_STP_PHY1_SHIFT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _XWAY_STP_PHY1_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh32:
	ldr	w8, [x8]
	lsl	w1, w9, w8
	ldr	w9, [x19, #12]
	lsl	w2, w9, w8
	ldr	w3, [x21]
	bl	_xway_stp_w32_mask
	ldr	w0, [x19, #24]
Lloh33:
	adrp	x8, _XWAY_STP_PHY2_SHIFT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _XWAY_STP_PHY2_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh35:
	ldr	w8, [x8]
	lsl	w1, w9, w8
	ldr	w9, [x19, #16]
	lsl	w2, w9, w8
	ldr	w3, [x20]
	bl	_xway_stp_w32_mask
	ldp	w9, w8, [x19, #12]
	ldr	w10, [x19, #8]
	lsl	w9, w9, #2
	orr	w8, w9, w8, lsl #5
	orr	w8, w8, w10
	str	w8, [x19, #20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
Lloh36:
	adrp	x8, _XWAY_STP_UPD_MASK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _XWAY_STP_UPD_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _XWAY_STP_UPD_FPI@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XWAY_STP_UPD_FPI@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	ldr	w3, [x20]
	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	_xway_stp_w32_mask
LBB0_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
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_XWAY_STP_AR,4,2                ; @XWAY_STP_AR
	.comm	_XWAY_STP_CPU0,4,2              ; @XWAY_STP_CPU0
	.comm	_XWAY_STP_CPU1,4,2              ; @XWAY_STP_CPU1
	.comm	_XWAY_STP_CON_SWU,4,2           ; @XWAY_STP_CON_SWU
	.comm	_XWAY_STP_CON0,4,2              ; @XWAY_STP_CON0
	.comm	_XWAY_STP_CON1,4,2              ; @XWAY_STP_CON1
	.comm	_XWAY_STP_EDGE_MASK,4,2         ; @XWAY_STP_EDGE_MASK
	.comm	_XWAY_STP_GROUP_MASK,4,2        ; @XWAY_STP_GROUP_MASK
	.comm	_XWAY_STP_ADSL_MASK,4,2         ; @XWAY_STP_ADSL_MASK
	.comm	_XWAY_STP_ADSL_SHIFT,4,2        ; @XWAY_STP_ADSL_SHIFT
	.comm	_XWAY_STP_PHY_MASK,4,2          ; @XWAY_STP_PHY_MASK
	.comm	_XWAY_STP_PHY1_SHIFT,4,2        ; @XWAY_STP_PHY1_SHIFT
	.comm	_XWAY_STP_PHY2_SHIFT,4,2        ; @XWAY_STP_PHY2_SHIFT
	.comm	_XWAY_STP_UPD_MASK,4,2          ; @XWAY_STP_UPD_MASK
	.comm	_XWAY_STP_UPD_FPI,4,2           ; @XWAY_STP_UPD_FPI
	.no_dead_strip	_xway_stp_hw_init
.subsections_via_symbols
