	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_probe_hw                ## -- Begin function rt2800_probe_hw
	.p2align	4, 0x90
_rt2800_probe_hw:                       ## @rt2800_probe_hw
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rt2800_probe_rt
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%rbx, %rdi
	callq	_rt2800_validate_eeprom
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	movq	%rbx, %rdi
	callq	_rt2800_init_eeprom
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movq	_GPIO_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movl	%eax, -20(%rbp)
	movq	_GPIO_CTRL_DIR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	%rbx, %rdi
	callq	_rt2800_probe_hw_mode
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	_CAPABILITY_CONTROL_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r14
	movq	%r14, %rsi
	callq	___set_bit
	movq	_CAPABILITY_CONTROL_FILTER_PSPOLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	%rbx, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_CAPABILITY_PRE_TBTT_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
LBB0_6:
	movq	%rbx, %rdi
	callq	_rt2x00_is_soc
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_REQUIRE_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
LBB0_8:
	movq	_REQUIRE_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	_REQUIRE_TXSTATUS_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	%rbx, %rdi
	callq	_rt2800_hwcrypt_disabled
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_CAPABILITY_HW_CRYPTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
LBB0_10:
	movq	_CAPABILITY_LINK_TUNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	_REQUIRE_HT_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	%rbx, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_REQUIRE_PS_AUTOWAKE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_REQUIRE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	_REQUIRE_TASKLET_CONTEXT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	_modparam_watchdog@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_CAPABILITY_RESTART_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%eax, 8(%rbx)
	jmp	LBB0_16
LBB0_15:
	movl	$1, 4(%rbx)
LBB0_16:
	movq	_DEFAULT_RSSI_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_CTRL,4,2                  ## @GPIO_CTRL
	.comm	_GPIO_CTRL_DIR2,4,2             ## @GPIO_CTRL_DIR2
	.comm	_CAPABILITY_CONTROL_FILTERS,4,2 ## @CAPABILITY_CONTROL_FILTERS
	.comm	_CAPABILITY_CONTROL_FILTER_PSPOLL,4,2 ## @CAPABILITY_CONTROL_FILTER_PSPOLL
	.comm	_CAPABILITY_PRE_TBTT_INTERRUPT,4,2 ## @CAPABILITY_PRE_TBTT_INTERRUPT
	.comm	_REQUIRE_FIRMWARE,4,2           ## @REQUIRE_FIRMWARE
	.comm	_REQUIRE_L2PAD,4,2              ## @REQUIRE_L2PAD
	.comm	_REQUIRE_TXSTATUS_FIFO,4,2      ## @REQUIRE_TXSTATUS_FIFO
	.comm	_CAPABILITY_HW_CRYPTO,4,2       ## @CAPABILITY_HW_CRYPTO
	.comm	_CAPABILITY_LINK_TUNING,4,2     ## @CAPABILITY_LINK_TUNING
	.comm	_REQUIRE_HT_TX_DESC,4,2         ## @REQUIRE_HT_TX_DESC
	.comm	_REQUIRE_PS_AUTOWAKE,4,2        ## @REQUIRE_PS_AUTOWAKE
	.comm	_REQUIRE_DMA,4,2                ## @REQUIRE_DMA
	.comm	_REQUIRE_TASKLET_CONTEXT,4,2    ## @REQUIRE_TASKLET_CONTEXT
	.comm	_modparam_watchdog,8,3          ## @modparam_watchdog
	.comm	_CAPABILITY_RESTART_HW,4,2      ## @CAPABILITY_RESTART_HW
	.comm	_DEFAULT_RSSI_OFFSET,4,2        ## @DEFAULT_RSSI_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_probe_hw                ; -- Begin function rt2800_probe_hw
	.p2align	2
_rt2800_probe_hw:                       ; @rt2800_probe_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_rt2800_probe_rt
	cbnz	w0, LBB0_17
; %bb.1:
	mov	x0, x19
	bl	_rt2800_validate_eeprom
	cbnz	w0, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_rt2800_init_eeprom
	cbnz	w0, LBB0_17
; %bb.3:
Lloh0:
	adrp	x20, _GPIO_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GPIO_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _GPIO_CTRL_DIR2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_CTRL_DIR2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2800_register_write
	mov	x0, x19
	bl	_rt2800_probe_hw_mode
	cbnz	w0, LBB0_17
; %bb.4:
Lloh5:
	adrp	x8, _CAPABILITY_CONTROL_FILTERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAPABILITY_CONTROL_FILTERS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x20, x19, #12
	mov	x1, x20
	bl	___set_bit
Lloh8:
	adrp	x8, _CAPABILITY_CONTROL_FILTER_PSPOLL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAPABILITY_CONTROL_FILTER_PSPOLL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbnz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _CAPABILITY_PRE_TBTT_INTERRUPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAPABILITY_PRE_TBTT_INTERRUPT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
LBB0_6:
	mov	x0, x19
	bl	_rt2x00_is_soc
	cbnz	w0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _REQUIRE_FIRMWARE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REQUIRE_FIRMWARE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
LBB0_8:
Lloh17:
	adrp	x8, _REQUIRE_L2PAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REQUIRE_L2PAD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh20:
	adrp	x8, _REQUIRE_TXSTATUS_FIFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REQUIRE_TXSTATUS_FIFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	mov	x0, x19
	bl	_rt2800_hwcrypt_disabled
	cbnz	w0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _CAPABILITY_HW_CRYPTO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAPABILITY_HW_CRYPTO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
LBB0_10:
Lloh26:
	adrp	x8, _CAPABILITY_LINK_TUNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CAPABILITY_LINK_TUNING@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh29:
	adrp	x8, _REQUIRE_HT_TX_DESC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REQUIRE_HT_TX_DESC@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbz	x0, LBB0_12
; %bb.11:
Lloh32:
	adrp	x8, _REQUIRE_PS_AUTOWAKE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REQUIRE_PS_AUTOWAKE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh34:
	adrp	x8, _REQUIRE_DMA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REQUIRE_DMA@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh37:
	adrp	x8, _REQUIRE_TASKLET_CONTEXT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _REQUIRE_TASKLET_CONTEXT@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh39:
	adrp	x8, _modparam_watchdog@GOTPAGE
Lloh40:
	ldr	x8, [x8, _modparam_watchdog@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
Lloh42:
	adrp	x8, _CAPABILITY_RESTART_HW@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CAPABILITY_RESTART_HW@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	mov	w0, #100
	bl	_msecs_to_jiffies
	str	w0, [x19, #8]
	b	LBB0_16
LBB0_15:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_16:
	mov	w0, #0
Lloh45:
	adrp	x8, _DEFAULT_RSSI_OFFSET@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DEFAULT_RSSI_OFFSET@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_CTRL,4,2                  ; @GPIO_CTRL
	.comm	_GPIO_CTRL_DIR2,4,2             ; @GPIO_CTRL_DIR2
	.comm	_CAPABILITY_CONTROL_FILTERS,4,2 ; @CAPABILITY_CONTROL_FILTERS
	.comm	_CAPABILITY_CONTROL_FILTER_PSPOLL,4,2 ; @CAPABILITY_CONTROL_FILTER_PSPOLL
	.comm	_CAPABILITY_PRE_TBTT_INTERRUPT,4,2 ; @CAPABILITY_PRE_TBTT_INTERRUPT
	.comm	_REQUIRE_FIRMWARE,4,2           ; @REQUIRE_FIRMWARE
	.comm	_REQUIRE_L2PAD,4,2              ; @REQUIRE_L2PAD
	.comm	_REQUIRE_TXSTATUS_FIFO,4,2      ; @REQUIRE_TXSTATUS_FIFO
	.comm	_CAPABILITY_HW_CRYPTO,4,2       ; @CAPABILITY_HW_CRYPTO
	.comm	_CAPABILITY_LINK_TUNING,4,2     ; @CAPABILITY_LINK_TUNING
	.comm	_REQUIRE_HT_TX_DESC,4,2         ; @REQUIRE_HT_TX_DESC
	.comm	_REQUIRE_PS_AUTOWAKE,4,2        ; @REQUIRE_PS_AUTOWAKE
	.comm	_REQUIRE_DMA,4,2                ; @REQUIRE_DMA
	.comm	_REQUIRE_TASKLET_CONTEXT,4,2    ; @REQUIRE_TASKLET_CONTEXT
	.comm	_modparam_watchdog,8,3          ; @modparam_watchdog
	.comm	_CAPABILITY_RESTART_HW,4,2      ; @CAPABILITY_RESTART_HW
	.comm	_DEFAULT_RSSI_OFFSET,4,2        ; @DEFAULT_RSSI_OFFSET
.subsections_via_symbols
