	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500pci_probe_hw
_rt2500pci_probe_hw:                    ## @rt2500pci_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	_rt2500pci_validate_eeprom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_rt2500pci_init_eeprom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_GPIOCSR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, -20(%rbp)
	movq	_GPIOCSR_DIR0@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	_rt2x00mmio_register_write
	movq	%rbx, %rdi
	callq	_rt2500pci_probe_hw_mode
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_REQUIRE_ATIM_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	___set_bit
	movq	_REQUIRE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	_REQUIRE_SW_SEQNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	___set_bit
	movq	_DEFAULT_RSSI_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOCSR,4,2                    ## @GPIOCSR
	.comm	_GPIOCSR_DIR0,4,2               ## @GPIOCSR_DIR0
	.comm	_REQUIRE_ATIM_QUEUE,4,2         ## @REQUIRE_ATIM_QUEUE
	.comm	_REQUIRE_DMA,4,2                ## @REQUIRE_DMA
	.comm	_REQUIRE_SW_SEQNO,4,2           ## @REQUIRE_SW_SEQNO
	.comm	_DEFAULT_RSSI_OFFSET,4,2        ## @DEFAULT_RSSI_OFFSET
	.no_dead_strip	_rt2500pci_probe_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500pci_probe_hw
_rt2500pci_probe_hw:                    ; @rt2500pci_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	_rt2500pci_validate_eeprom
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_rt2500pci_init_eeprom
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x20, _GPIOCSR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GPIOCSR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _GPIOCSR_DIR0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOCSR_DIR0@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	_rt2x00mmio_register_write
	mov	x0, x19
	bl	_rt2500pci_probe_hw_mode
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _REQUIRE_ATIM_QUEUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQUIRE_ATIM_QUEUE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	___set_bit
Lloh8:
	adrp	x8, _REQUIRE_DMA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQUIRE_DMA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh11:
	adrp	x8, _REQUIRE_SW_SEQNO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REQUIRE_SW_SEQNO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	mov	w0, #0
Lloh14:
	adrp	x8, _DEFAULT_RSSI_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEFAULT_RSSI_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOCSR,4,2                    ; @GPIOCSR
	.comm	_GPIOCSR_DIR0,4,2               ; @GPIOCSR_DIR0
	.comm	_REQUIRE_ATIM_QUEUE,4,2         ; @REQUIRE_ATIM_QUEUE
	.comm	_REQUIRE_DMA,4,2                ; @REQUIRE_DMA
	.comm	_REQUIRE_SW_SEQNO,4,2           ; @REQUIRE_SW_SEQNO
	.comm	_DEFAULT_RSSI_OFFSET,4,2        ; @DEFAULT_RSSI_OFFSET
	.no_dead_strip	_rt2500pci_probe_hw
.subsections_via_symbols
