	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_probe_dev            ## -- Begin function rt2x00lib_probe_dev
	.p2align	4, 0x90
_rt2x00lib_probe_dev:                   ## @rt2x00lib_probe_dev
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rt2x00lib_set_if_combinations
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movl	%eax, 76(%rbx)
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	72(%rbx), %rdi
	callq	_spin_lock_init
	leaq	68(%rbx), %rdi
	callq	_mutex_init
	leaq	64(%rbx), %rdi
	callq	_mutex_init
	leaq	60(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	56(%rbx), %rdi
	callq	_spin_lock_init
	leaq	52(%rbx), %rdi
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hrtimer_init
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%rbx), %rsi
	callq	_set_bit
	movq	(%rbx), %rax
	movl	$4, (%rax)
	movq	24(%rbx), %rcx
	movq	16(%rcx), %rcx
	decq	%rcx
	movq	8(%rax), %rdi
	movq	8(%rdi), %rax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movq	%rcx, -8(%rax,%rdx,8)
	callq	_wiphy_name
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_alloc_ordered_workqueue
	movl	%eax, 44(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	leaq	40(%rbx), %rdi
	movq	_rt2x00lib_intf_scheduled@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	36(%rbx), %rdi
	movq	_rt2x00lib_autowakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	32(%rbx), %rdi
	movq	_rt2x00lib_sleep@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	24(%rbx), %rax
	movq	8(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movq	%rbx, %rdi
	callq	_rt2x00_err
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_5:
	subl	(%rax), %r14d
LBB0_6:
	movq	%rbx, %rdi
	callq	_rt2x00lib_remove_dev
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	callq	_rt2x00queue_allocate
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	movq	%rbx, %rdi
	callq	_rt2x00dev_extra_tx_headroom
	movl	%eax, 16(%rbx)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdi
	movl	%eax, (%rdi)
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	jle	LBB0_13
## %bb.12:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r14d
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r14d, %eax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdi
	orl	%eax, (%rdi)
LBB0_13:
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rdi)
	movq	_NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wiphy_ext_feature_set
	movq	%rbx, %rdi
	callq	_rt2x00lib_probe_hw
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_15:
	movq	%rbx, %rdi
	callq	_rt2x00link_register
	movq	%rbx, %rdi
	callq	_rt2x00leds_register
	movq	%rbx, %rdi
	callq	_rt2x00debug_register
	movq	_REQUIRE_DELAYED_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_has_cap_flag
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_rt2x00rfkill_register
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_DEVICE_STATE_PRESENT,4,2       ## @DEVICE_STATE_PRESENT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_rt2x00lib_intf_scheduled,4,2   ## @rt2x00lib_intf_scheduled
	.comm	_rt2x00lib_autowakeup,4,2       ## @rt2x00lib_autowakeup
	.comm	_rt2x00lib_sleep,4,2            ## @rt2x00lib_sleep
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate device\n"

	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ## @NL80211_EXT_FEATURE_CQM_RSSI_LIST
L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialize hw\n"

	.comm	_REQUIRE_DELAYED_RFKILL,4,2     ## @REQUIRE_DELAYED_RFKILL
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_WDS,4,2         ## @NL80211_IFTYPE_WDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_probe_dev            ; -- Begin function rt2x00lib_probe_dev
	.p2align	2
_rt2x00lib_probe_dev:                   ; @rt2x00lib_probe_dev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rt2x00lib_set_if_combinations
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	str	w0, [x19, #76]
	cbz	w0, LBB0_6
LBB0_2:
	add	x0, x19, #72
	bl	_spin_lock_init
	add	x0, x19, #68
	bl	_mutex_init
	add	x0, x19, #64
	bl	_mutex_init
	add	x0, x19, #60
	bl	_INIT_LIST_HEAD
	add	x0, x19, #56
	bl	_spin_lock_init
	add	x0, x19, #52
Lloh3:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_hrtimer_init
Lloh9:
	adrp	x8, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_set_bit
	ldr	x8, [x19]
	mov	w9, #4
	str	w9, [x8]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #16]
	sub	x9, x9, #1
	ldr	x0, [x8, #8]
	ldr	x8, [x0, #8]
Lloh12:
	adrp	x10, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	add	x8, x8, x10, lsl #3
	stur	x9, [x8, #-8]
	bl	_wiphy_name
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	w0, [x19, #44]
	cbz	w0, LBB0_6
; %bb.3:
	add	x0, x19, #40
Lloh17:
	adrp	x8, _rt2x00lib_intf_scheduled@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rt2x00lib_intf_scheduled@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #36
Lloh20:
	adrp	x8, _rt2x00lib_autowakeup@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rt2x00lib_autowakeup@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #32
Lloh23:
	adrp	x8, _rt2x00lib_sleep@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rt2x00lib_sleep@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_9
; %bb.4:
	mov	x20, x0
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_rt2x00_err
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_rt2x00lib_remove_dev
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_rt2x00queue_allocate
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.10:
	mov	x0, x19
	bl	_rt2x00dev_extra_tx_headroom
	str	w0, [x19, #16]
Lloh31:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_BIT
	mov	x8, x0
	ldp	x9, x10, [x19]
	ldr	x0, [x9, #8]
	str	w8, [x0]
	ldr	x8, [x10]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
Lloh34:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh37:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w20
	ldr	x9, [x19]
	ldr	x0, [x9, #8]
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
LBB0_12:
Lloh40:
	adrp	x8, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
Lloh43:
	adrp	x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_wiphy_ext_feature_set
	mov	x0, x19
	bl	_rt2x00lib_probe_hw
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_14:
	mov	x0, x19
	bl	_rt2x00link_register
	mov	x0, x19
	bl	_rt2x00leds_register
	mov	x0, x19
	bl	_rt2x00debug_register
Lloh48:
	adrp	x8, _REQUIRE_DELAYED_RFKILL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _REQUIRE_DELAYED_RFKILL@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_has_cap_flag
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_rt2x00rfkill_register
LBB0_16:
	mov	w20, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_DEVICE_STATE_PRESENT,4,2       ; @DEVICE_STATE_PRESENT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_rt2x00lib_intf_scheduled,4,2   ; @rt2x00lib_intf_scheduled
	.comm	_rt2x00lib_autowakeup,4,2       ; @rt2x00lib_autowakeup
	.comm	_rt2x00lib_sleep,4,2            ; @rt2x00lib_sleep
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate device\n"

	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ; @NL80211_EXT_FEATURE_CQM_RSSI_LIST
l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialize hw\n"

	.comm	_REQUIRE_DELAYED_RFKILL,4,2     ; @REQUIRE_DELAYED_RFKILL
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_WDS,4,2         ; @NL80211_IFTYPE_WDS
.subsections_via_symbols
