	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_get_firmware_name
_rt61pci_get_firmware_name:             ## @rt61pci_get_firmware_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	_PCI_DEVICE_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-4(%rbp), %rdx
	movl	%eax, %edi
	callq	_pci_read_config_word
	movl	-4(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_3
## %bb.4:
	movq	_FIRMWARE_RT2561@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_FIRMWARE_RT2661@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_FIRMWARE_RT2561s@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID,4,2              ## @PCI_DEVICE_ID
	.comm	_FIRMWARE_RT2561,8,3            ## @FIRMWARE_RT2561
	.comm	_FIRMWARE_RT2561s,8,3           ## @FIRMWARE_RT2561s
	.comm	_FIRMWARE_RT2661,8,3            ## @FIRMWARE_RT2661
	.no_dead_strip	_rt61pci_get_firmware_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_get_firmware_name
_rt61pci_get_firmware_name:             ; @rt61pci_get_firmware_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w0, [x0]
	bl	_to_pci_dev
Lloh0:
	adrp	x8, _PCI_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_pci_read_config_word
	ldur	w8, [x29, #-4]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _FIRMWARE_RT2561@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIRMWARE_RT2561@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _FIRMWARE_RT2661@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIRMWARE_RT2661@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _FIRMWARE_RT2561s@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FIRMWARE_RT2561s@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID,4,2              ; @PCI_DEVICE_ID
	.comm	_FIRMWARE_RT2561,8,3            ; @FIRMWARE_RT2561
	.comm	_FIRMWARE_RT2561s,8,3           ; @FIRMWARE_RT2561s
	.comm	_FIRMWARE_RT2661,8,3            ; @FIRMWARE_RT2661
	.no_dead_strip	_rt61pci_get_firmware_name
.subsections_via_symbols
