	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_mac_pre_system_cfg
_rtw_mac_pre_system_cfg:                ## @rtw_mac_pre_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	_REG_RSV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_rtw_write8
	movq	%rbx, %rdi
	callq	_rtw_hci_type
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movq	_REG_HCI_OPT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_BT_DIG_CLK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtw_write32_set
LBB0_3:
	movq	_REG_PAD_CTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_read32
	movq	_BIT_PAPE_WLBT_SEL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BIT_LNAON_WLBT_SEL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtw_write32
	movq	_REG_LED_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_read32
	movq	_BIT_PAPE_SEL_EN@GOTPCREL(%rip), %rcx
	movq	_BIT_LNAON_SEL_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_write32
	movq	_REG_GPIO_MUXCFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_read32
	movq	_BIT_WLRFE_4_5_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), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_read8
	movq	_BIT_FEN_BB_RSTB@GOTPCREL(%rip), %rcx
	movq	_BIT_FEN_BB_GLB_RST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_write8
	movq	_REG_RF_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_read8
	movq	_BIT_RF_SDM_RSTB@GOTPCREL(%rip), %rcx
	movq	_BIT_RF_RSTB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_BIT_RF_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_write8
	movq	_REG_WLRF1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_read32
	movq	_BIT_WLRF1_BBRF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtw_write32
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RSV_CTRL,4,2               ## @REG_RSV_CTRL
	.comm	_REG_HCI_OPT_CTRL,4,2           ## @REG_HCI_OPT_CTRL
	.comm	_BIT_BT_DIG_CLK_EN,4,2          ## @BIT_BT_DIG_CLK_EN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_PAD_CTRL1,4,2              ## @REG_PAD_CTRL1
	.comm	_BIT_PAPE_WLBT_SEL,4,2          ## @BIT_PAPE_WLBT_SEL
	.comm	_BIT_LNAON_WLBT_SEL,4,2         ## @BIT_LNAON_WLBT_SEL
	.comm	_REG_LED_CFG,4,2                ## @REG_LED_CFG
	.comm	_BIT_PAPE_SEL_EN,4,2            ## @BIT_PAPE_SEL_EN
	.comm	_BIT_LNAON_SEL_EN,4,2           ## @BIT_LNAON_SEL_EN
	.comm	_REG_GPIO_MUXCFG,4,2            ## @REG_GPIO_MUXCFG
	.comm	_BIT_WLRFE_4_5_EN,4,2           ## @BIT_WLRFE_4_5_EN
	.comm	_REG_SYS_FUNC_EN,4,2            ## @REG_SYS_FUNC_EN
	.comm	_BIT_FEN_BB_RSTB,4,2            ## @BIT_FEN_BB_RSTB
	.comm	_BIT_FEN_BB_GLB_RST,4,2         ## @BIT_FEN_BB_GLB_RST
	.comm	_REG_RF_CTRL,4,2                ## @REG_RF_CTRL
	.comm	_BIT_RF_SDM_RSTB,4,2            ## @BIT_RF_SDM_RSTB
	.comm	_BIT_RF_RSTB,4,2                ## @BIT_RF_RSTB
	.comm	_BIT_RF_EN,4,2                  ## @BIT_RF_EN
	.comm	_REG_WLRF1,4,2                  ## @REG_WLRF1
	.comm	_BIT_WLRF1_BBRF_EN,4,2          ## @BIT_WLRF1_BBRF_EN
	.no_dead_strip	_rtw_mac_pre_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_pre_system_cfg
_rtw_mac_pre_system_cfg:                ; @rtw_mac_pre_system_cfg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_RSV_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_RSV_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rtw_write8
	mov	x0, x19
	bl	_rtw_hci_type
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _REG_HCI_OPT_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_HCI_OPT_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _BIT_BT_DIG_CLK_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT_BT_DIG_CLK_EN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_write32_set
LBB0_3:
Lloh9:
	adrp	x20, _REG_PAD_CTRL1@GOTPAGE
Lloh10:
	ldr	x20, [x20, _REG_PAD_CTRL1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read32
Lloh11:
	adrp	x8, _BIT_PAPE_WLBT_SEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIT_PAPE_WLBT_SEL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _BIT_LNAON_WLBT_SEL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BIT_LNAON_WLBT_SEL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write32
Lloh17:
	adrp	x20, _REG_LED_CFG@GOTPAGE
Lloh18:
	ldr	x20, [x20, _REG_LED_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read32
Lloh19:
	adrp	x8, _BIT_PAPE_SEL_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BIT_PAPE_SEL_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _BIT_LNAON_SEL_EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BIT_LNAON_SEL_EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write32
Lloh25:
	adrp	x20, _REG_GPIO_MUXCFG@GOTPAGE
Lloh26:
	ldr	x20, [x20, _REG_GPIO_MUXCFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read32
Lloh27:
	adrp	x8, _BIT_WLRFE_4_5_EN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BIT_WLRFE_4_5_EN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write32
Lloh30:
	adrp	x20, _REG_SYS_FUNC_EN@GOTPAGE
Lloh31:
	ldr	x20, [x20, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read8
Lloh32:
	adrp	x8, _BIT_FEN_BB_RSTB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BIT_FEN_BB_RSTB@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _BIT_FEN_BB_GLB_RST@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BIT_FEN_BB_GLB_RST@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write8
Lloh38:
	adrp	x20, _REG_RF_CTRL@GOTPAGE
Lloh39:
	ldr	x20, [x20, _REG_RF_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read8
Lloh40:
	adrp	x8, _BIT_RF_SDM_RSTB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BIT_RF_SDM_RSTB@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _BIT_RF_RSTB@GOTPAGE
Lloh44:
	ldr	x9, [x9, _BIT_RF_RSTB@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh46:
	adrp	x9, _BIT_RF_EN@GOTPAGE
Lloh47:
	ldr	x9, [x9, _BIT_RF_EN@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write8
Lloh49:
	adrp	x20, _REG_WLRF1@GOTPAGE
Lloh50:
	ldr	x20, [x20, _REG_WLRF1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_read32
Lloh51:
	adrp	x8, _BIT_WLRF1_BBRF_EN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _BIT_WLRF1_BBRF_EN@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_write32
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh54:
	adrp	x8, _EINVAL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RSV_CTRL,4,2               ; @REG_RSV_CTRL
	.comm	_REG_HCI_OPT_CTRL,4,2           ; @REG_HCI_OPT_CTRL
	.comm	_BIT_BT_DIG_CLK_EN,4,2          ; @BIT_BT_DIG_CLK_EN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_PAD_CTRL1,4,2              ; @REG_PAD_CTRL1
	.comm	_BIT_PAPE_WLBT_SEL,4,2          ; @BIT_PAPE_WLBT_SEL
	.comm	_BIT_LNAON_WLBT_SEL,4,2         ; @BIT_LNAON_WLBT_SEL
	.comm	_REG_LED_CFG,4,2                ; @REG_LED_CFG
	.comm	_BIT_PAPE_SEL_EN,4,2            ; @BIT_PAPE_SEL_EN
	.comm	_BIT_LNAON_SEL_EN,4,2           ; @BIT_LNAON_SEL_EN
	.comm	_REG_GPIO_MUXCFG,4,2            ; @REG_GPIO_MUXCFG
	.comm	_BIT_WLRFE_4_5_EN,4,2           ; @BIT_WLRFE_4_5_EN
	.comm	_REG_SYS_FUNC_EN,4,2            ; @REG_SYS_FUNC_EN
	.comm	_BIT_FEN_BB_RSTB,4,2            ; @BIT_FEN_BB_RSTB
	.comm	_BIT_FEN_BB_GLB_RST,4,2         ; @BIT_FEN_BB_GLB_RST
	.comm	_REG_RF_CTRL,4,2                ; @REG_RF_CTRL
	.comm	_BIT_RF_SDM_RSTB,4,2            ; @BIT_RF_SDM_RSTB
	.comm	_BIT_RF_RSTB,4,2                ; @BIT_RF_RSTB
	.comm	_BIT_RF_EN,4,2                  ; @BIT_RF_EN
	.comm	_REG_WLRF1,4,2                  ; @REG_WLRF1
	.comm	_BIT_WLRF1_BBRF_EN,4,2          ; @BIT_WLRF1_BBRF_EN
	.no_dead_strip	_rtw_mac_pre_system_cfg
.subsections_via_symbols
