	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_wiphy_register         ## -- Begin function orinoco_wiphy_register
	.p2align	4, 0x90
_orinoco_wiphy_register:                ## @orinoco_wiphy_register
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_wiphy_priv
	movq	%rax, %r15
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_FIRMWARE_TYPE_AGERE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%r14)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, 56(%r14)
	cmpq	$0, 104(%r15)
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, 56(%r14)
LBB0_2:
	cmpl	$0, 96(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_force_monitor@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
LBB0_4:
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, 56(%r14)
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_orinoco_rates@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, 84(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 80(%rbx)
	movq	_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %r12d
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%r15d, %r15d
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movslq	%eax, %rcx
	movq	%r13, %r15
	cmpq	%rcx, %r13
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %ecx
	leaq	1(%r15), %r13
	btl	%r15d, %ecx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rsi
	leal	1(%r15), %edi
	callq	_ieee80211_channel_to_frequency
	movq	88(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	incl	%r12d
	movq	_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_10:
	movl	88(%rbx), %eax
	movl	%eax, 76(%rbx)
	movl	%r12d, 72(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	48(%rdi), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	movq	_CFG80211_SIGNAL_TYPE_MBM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	cmpq	$0, 64(%rbx)
	movl	$0, %esi
	je	LBB0_14
## %bb.11:
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	40(%rbx), %rax
	movl	%ecx, (%rax)
	cmpq	$0, 56(%rbx)
	je	LBB0_12
## %bb.13:
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	$2, %esi
LBB0_14:
	cmpq	$0, 48(%rbx)
	je	LBB0_15
LBB0_16:
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	40(%rbx), %rax
	movl	%esi, %edx
	movl	%ecx, (%rax,%rdx,4)
	incl	%esi
	jmp	LBB0_17
LBB0_12:
	movl	$1, %esi
	cmpq	$0, 48(%rbx)
	jne	LBB0_16
LBB0_15:
	movq	40(%rbx), %rax
LBB0_17:
	movq	%rax, 32(%rdi)
	movl	%esi, 4(%rdi)
	movl	36(%rbx), %eax
	movl	%eax, 24(%rdi)
	cmpl	$0, 32(%rbx)
	jne	LBB0_19
## %bb.18:
	movq	24(%rbx), %rax
	incq	%rax
	movq	%rax, 16(%rdi)
LBB0_19:
	movl	16(%rbx), %eax
	movl	%eax, 12(%rdi)
	movl	12(%rbx), %eax
	movl	%eax, 8(%rdi)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wiphy_register                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRMWARE_TYPE_AGERE,8,3        ## @FIRMWARE_TYPE_AGERE
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_force_monitor,8,3              ## @force_monitor
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.comm	_orinoco_rates,4,2              ## @orinoco_rates
	.comm	_NUM_CHANNELS,4,2               ## @NUM_CHANNELS
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_CFG80211_SIGNAL_TYPE_MBM,4,2   ## @CFG80211_SIGNAL_TYPE_MBM
	.comm	_WLAN_CIPHER_SUITE_WEP40,4,2    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,4,2   ## @WLAN_CIPHER_SUITE_WEP104
	.comm	_WLAN_CIPHER_SUITE_TKIP,4,2     ## @WLAN_CIPHER_SUITE_TKIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_wiphy_register         ; -- Begin function orinoco_wiphy_register
	.p2align	2
_orinoco_wiphy_register:                ; @orinoco_wiphy_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_wiphy_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FIRMWARE_TYPE_AGERE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIRMWARE_TYPE_AGERE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19]
Lloh3:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	str	w0, [x19, #56]
	ldr	x8, [x20, #104]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x19, #56]
	orr	w8, w8, w0
	str	w8, [x19, #56]
LBB0_2:
	ldr	w8, [x20, #96]
	cbz	w8, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _force_monitor@GOTPAGE
Lloh10:
	ldr	x8, [x8, _force_monitor@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x19, #56]
	orr	w8, w8, w0
	str	w8, [x19, #56]
LBB0_5:
Lloh15:
	adrp	x8, _orinoco_rates@GOTPAGE
Lloh16:
	ldr	x8, [x8, _orinoco_rates@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x21, x20, #72
	str	w0, [x20, #84]
	bl	_ARRAY_SIZE
	str	w0, [x20, #80]
Lloh18:
	adrp	x23, _NUM_CHANNELS@GOTPAGE
Lloh19:
	ldr	x23, [x23, _NUM_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh20:
	adrp	x22, _NL80211_BAND_2GHZ@GOTPAGE
Lloh21:
	ldr	x22, [x22, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x25, #0
	mov	w24, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #8]
	lsr	w9, w9, w25
	tbz	w9, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x22]
	add	w0, w25, #1
	bl	_ieee80211_channel_to_frequency
	ldr	x8, [x20, #88]
	str	w0, [x8, x25, lsl #2]
	add	w24, w24, #1
	ldr	w8, [x23]
	b	LBB0_7
LBB0_10:
	mov	w24, #0
LBB0_11:
	ldr	x8, [x20, #88]
	ldr	x9, [x19, #48]
	ldr	x10, [x22]
	str	x21, [x9, x10, lsl #3]
	stp	w24, w8, [x20, #72]
Lloh22:
	adrp	x8, _CFG80211_SIGNAL_TYPE_MBM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CFG80211_SIGNAL_TYPE_MBM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_14
; %bb.12:
Lloh25:
	adrp	x8, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x8]
	ldr	x8, [x20, #40]
	str	w9, [x8]
	ldr	x9, [x20, #56]
	cbz	x9, LBB0_16
; %bb.13:
Lloh28:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	mov	w8, #2
LBB0_14:
	ldr	x9, [x20, #48]
	cbz	x9, LBB0_17
LBB0_15:
Lloh31:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x9]
	ldr	x9, [x20, #40]
	str	w10, [x9, w8, uxtw #2]
	add	w8, w8, #1
	b	LBB0_18
LBB0_16:
	mov	w8, #1
	ldr	x9, [x20, #48]
	cbnz	x9, LBB0_15
LBB0_17:
	ldr	x9, [x20, #40]
LBB0_18:
	str	x9, [x19, #32]
	str	w8, [x19, #4]
	ldp	w9, w8, [x20, #32]
	str	w8, [x19, #24]
	cbnz	w9, LBB0_20
; %bb.19:
	ldr	x8, [x20, #24]
	add	x8, x8, #1
	str	x8, [x19, #16]
LBB0_20:
	ldur	d0, [x20, #12]
	str	d0, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wiphy_register
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRMWARE_TYPE_AGERE,8,3        ; @FIRMWARE_TYPE_AGERE
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_force_monitor,8,3              ; @force_monitor
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.comm	_orinoco_rates,4,2              ; @orinoco_rates
	.comm	_NUM_CHANNELS,4,2               ; @NUM_CHANNELS
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_CFG80211_SIGNAL_TYPE_MBM,4,2   ; @CFG80211_SIGNAL_TYPE_MBM
	.comm	_WLAN_CIPHER_SUITE_WEP40,4,2    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,4,2   ; @WLAN_CIPHER_SUITE_WEP104
	.comm	_WLAN_CIPHER_SUITE_TKIP,4,2     ; @WLAN_CIPHER_SUITE_TKIP
.subsections_via_symbols
