	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_mac_init_system_cfg
_rtw_mac_init_system_cfg:               ## @rtw_mac_init_system_cfg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	movq	_REG_CPU_DMEM_CON@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_rtw_read32
	movq	_BIT_WL_PLATFORM_RST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BIT_DDMA_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtw_write32
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rtw_write8
	movq	_REG_CR_EXT@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	callq	_rtw_read8
                                        ## kill: def $eax killed $eax def $rax
	andl	$240, %eax
	leal	12(%rax), %edx
	movq	(%r14), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	callq	_rtw_write8
	movq	_REG_MCUFW_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtw_read32
	movq	_BIT_BOOT_FSPI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	notl	%ecx
	andl	%ecx, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtw_write32
	movq	_REG_GPIO_MUXCFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtw_read32
	movq	_BIT_FSPI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtw_write32
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CPU_DMEM_CON,4,2           ## @REG_CPU_DMEM_CON
	.comm	_BIT_WL_PLATFORM_RST,4,2        ## @BIT_WL_PLATFORM_RST
	.comm	_BIT_DDMA_EN,4,2                ## @BIT_DDMA_EN
	.comm	_REG_SYS_FUNC_EN,8,3            ## @REG_SYS_FUNC_EN
	.comm	_REG_CR_EXT,8,3                 ## @REG_CR_EXT
	.comm	_REG_MCUFW_CTRL,4,2             ## @REG_MCUFW_CTRL
	.comm	_BIT_BOOT_FSPI_EN,4,2           ## @BIT_BOOT_FSPI_EN
	.comm	_REG_GPIO_MUXCFG,4,2            ## @REG_GPIO_MUXCFG
	.comm	_BIT_FSPI_EN,4,2                ## @BIT_FSPI_EN
	.no_dead_strip	_rtw_mac_init_system_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_mac_init_system_cfg
_rtw_mac_init_system_cfg:               ; @rtw_mac_init_system_cfg
	.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	x8, [x0]
	ldr	w20, [x8]
Lloh0:
	adrp	x21, _REG_CPU_DMEM_CON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_CPU_DMEM_CON@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rtw_read32
Lloh2:
	adrp	x8, _BIT_WL_PLATFORM_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT_WL_PLATFORM_RST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BIT_DDMA_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIT_DDMA_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtw_write32
Lloh8:
	adrp	x8, _REG_SYS_FUNC_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_SYS_FUNC_EN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_rtw_write8
Lloh11:
	adrp	x20, _REG_CR_EXT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _REG_CR_EXT@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, #3
	mov	x0, x19
	bl	_rtw_read8
	and	w8, w0, #0xf0
	orr	w2, w8, #0xc
	ldr	x8, [x20]
	add	x1, x8, #3
	mov	x0, x19
	bl	_rtw_write8
Lloh13:
	adrp	x20, _REG_MCUFW_CTRL@GOTPAGE
Lloh14:
	ldr	x20, [x20, _REG_MCUFW_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read32
Lloh15:
	adrp	x8, _BIT_BOOT_FSPI_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIT_BOOT_FSPI_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x20]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_rtw_write32
Lloh18:
	adrp	x20, _REG_GPIO_MUXCFG@GOTPAGE
Lloh19:
	ldr	x20, [x20, _REG_GPIO_MUXCFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read32
Lloh20:
	adrp	x8, _BIT_FSPI_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BIT_FSPI_EN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write32
LBB0_2:
	mov	w0, #0
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CPU_DMEM_CON,4,2           ; @REG_CPU_DMEM_CON
	.comm	_BIT_WL_PLATFORM_RST,4,2        ; @BIT_WL_PLATFORM_RST
	.comm	_BIT_DDMA_EN,4,2                ; @BIT_DDMA_EN
	.comm	_REG_SYS_FUNC_EN,8,3            ; @REG_SYS_FUNC_EN
	.comm	_REG_CR_EXT,8,3                 ; @REG_CR_EXT
	.comm	_REG_MCUFW_CTRL,4,2             ; @REG_MCUFW_CTRL
	.comm	_BIT_BOOT_FSPI_EN,4,2           ; @BIT_BOOT_FSPI_EN
	.comm	_REG_GPIO_MUXCFG,4,2            ; @REG_GPIO_MUXCFG
	.comm	_BIT_FSPI_EN,4,2                ; @BIT_FSPI_EN
	.no_dead_strip	_rtw_mac_init_system_cfg
.subsections_via_symbols
