	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2400pci_probe_hw_mode
_rt2400pci_probe_hw_mode:               ## @rt2400pci_probe_hw_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_PS_NULLFUNC_STACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ieee80211_hw_set
	movl	(%r14), %edi
	movq	_SUPPORTS_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ieee80211_hw_set
	movl	(%r14), %edi
	movq	_HOST_BROADCAST_PS_BUFFERING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ieee80211_hw_set
	movl	(%r14), %edi
	movq	_SIGNAL_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ieee80211_hw_set
	movl	(%r14), %edi
	movl	4(%r14), %esi
	callq	_SET_IEEE80211_DEV
	movl	(%r14), %ebx
	movq	_EEPROM_MAC_ADDR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_eeprom_addr
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_SET_IEEE80211_PERM_ADDR
	movq	_SUPPORT_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_SUPPORT_RATE_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_rf_vals_b@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r14)
	movl	(%rbx), %ecx
	movl	%ecx, 20(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$16, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, 8(%r14)
	movq	_EEPROM_TXPOWER_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_eeprom_addr
	movq	%rax, %r15
	addq	$8, %r13
	xorl	%r14d, %r14d
	movq	_MAX_TXPOWER@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12), %edi
	callq	_TXPOWER_FROM_DEV
	movq	%rax, (%r13)
	movsbl	(%r15,%rbx), %edi
	callq	_TXPOWER_FROM_DEV
	movq	%rax, -8(%r13)
	incq	%rbx
	addq	$16, %r13
	cmpq	$14, %rbx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_NULLFUNC_STACK,4,2          ## @PS_NULLFUNC_STACK
	.comm	_SUPPORTS_PS,4,2                ## @SUPPORTS_PS
	.comm	_HOST_BROADCAST_PS_BUFFERING,4,2 ## @HOST_BROADCAST_PS_BUFFERING
	.comm	_SIGNAL_DBM,4,2                 ## @SIGNAL_DBM
	.comm	_EEPROM_MAC_ADDR_0,4,2          ## @EEPROM_MAC_ADDR_0
	.comm	_SUPPORT_BAND_2GHZ,4,2          ## @SUPPORT_BAND_2GHZ
	.comm	_SUPPORT_RATE_CCK,4,2           ## @SUPPORT_RATE_CCK
	.comm	_rf_vals_b,4,2                  ## @rf_vals_b
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EEPROM_TXPOWER_START,4,2       ## @EEPROM_TXPOWER_START
	.comm	_MAX_TXPOWER,1,0                ## @MAX_TXPOWER
	.no_dead_strip	_rt2400pci_probe_hw_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2400pci_probe_hw_mode
_rt2400pci_probe_hw_mode:               ; @rt2400pci_probe_hw_mode
	.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	w0, [x0]
Lloh0:
	adrp	x8, _PS_NULLFUNC_STACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS_NULLFUNC_STACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ieee80211_hw_set
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _SUPPORTS_PS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTS_PS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ieee80211_hw_set
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _HOST_BROADCAST_PS_BUFFERING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOST_BROADCAST_PS_BUFFERING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ieee80211_hw_set
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _SIGNAL_DBM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGNAL_DBM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ieee80211_hw_set
	ldp	w0, w1, [x19]
	bl	_SET_IEEE80211_DEV
	ldr	w20, [x19]
Lloh12:
	adrp	x8, _EEPROM_MAC_ADDR_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EEPROM_MAC_ADDR_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_eeprom_addr
	mov	x1, x0
	mov	x0, x20
	bl	_SET_IEEE80211_PERM_ADDR
Lloh15:
	adrp	x8, _SUPPORT_BAND_2GHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUPPORT_BAND_2GHZ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SUPPORT_RATE_CCK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SUPPORT_RATE_CCK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh21:
	adrp	x20, _rf_vals_b@GOTPAGE
Lloh22:
	ldr	x20, [x20, _rf_vals_b@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ARRAY_SIZE
	ldr	w8, [x20]
	stp	w0, w8, [x19, #16]
Lloh23:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_kcalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
Lloh26:
	adrp	x8, _EEPROM_TXPOWER_START@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EEPROM_TXPOWER_START@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_eeprom_addr
	mov	x19, x0
	mov	x21, #0
	add	x20, x20, #8
Lloh29:
	adrp	x22, _MAX_TXPOWER@GOTPAGE
Lloh30:
	ldr	x22, [x22, _MAX_TXPOWER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22]
	bl	_TXPOWER_FROM_DEV
	str	x0, [x20]
	ldrsb	w0, [x19, x21]
	bl	_TXPOWER_FROM_DEV
	stur	x0, [x20, #-8]
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, #14
	b.ne	LBB0_2
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_NULLFUNC_STACK,4,2          ; @PS_NULLFUNC_STACK
	.comm	_SUPPORTS_PS,4,2                ; @SUPPORTS_PS
	.comm	_HOST_BROADCAST_PS_BUFFERING,4,2 ; @HOST_BROADCAST_PS_BUFFERING
	.comm	_SIGNAL_DBM,4,2                 ; @SIGNAL_DBM
	.comm	_EEPROM_MAC_ADDR_0,4,2          ; @EEPROM_MAC_ADDR_0
	.comm	_SUPPORT_BAND_2GHZ,4,2          ; @SUPPORT_BAND_2GHZ
	.comm	_SUPPORT_RATE_CCK,4,2           ; @SUPPORT_RATE_CCK
	.comm	_rf_vals_b,4,2                  ; @rf_vals_b
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EEPROM_TXPOWER_START,4,2       ; @EEPROM_TXPOWER_START
	.comm	_MAX_TXPOWER,1,0                ; @MAX_TXPOWER
	.no_dead_strip	_rt2400pci_probe_hw_mode
.subsections_via_symbols
