	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_register_hw                ## -- Begin function rtw_register_hw
	.p2align	4, 0x90
_rtw_register_hw:                       ## @rtw_register_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 4(%rsi)
	movq	_SIGNAL_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_RX_INCLUDES_FCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_AMPDU_AGGREGATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_MFP_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_REPORTS_TX_ACK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_DYNAMIC_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORT_FAST_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_AMSDU_IN_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r15d, %eax
	orl	%r12d, %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_WIPHY_FLAG_SUPPORTS_TDLS@GOTPCREL(%rip), %rax
	movq	_WIPHY_FLAG_TDLS_EXTERNAL_SETUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	orl	%edx, 4(%rcx)
	movq	_NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rcx)
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_rtw_set_supported_band
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_SET_IEEE80211_PERM_ADDR
	movq	_rtw_regd_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtw_regd_init
	movq	%rbx, %rdi
	callq	_ieee80211_register_hw
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
	jmp	LBB0_5
LBB0_2:
	movq	16(%rbx), %rdi
	movl	(%r14), %esi
	callq	_regulatory_hint
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
LBB0_4:
	movq	%r14, %rdi
	callq	_rtw_debugfs_init
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_SIGNAL_DBM,4,2                 ## @SIGNAL_DBM
	.comm	_RX_INCLUDES_FCS,4,2            ## @RX_INCLUDES_FCS
	.comm	_AMPDU_AGGREGATION,4,2          ## @AMPDU_AGGREGATION
	.comm	_MFP_CAPABLE,4,2                ## @MFP_CAPABLE
	.comm	_REPORTS_TX_ACK_STATUS,4,2      ## @REPORTS_TX_ACK_STATUS
	.comm	_SUPPORTS_PS,4,2                ## @SUPPORTS_PS
	.comm	_SUPPORTS_DYNAMIC_PS,4,2        ## @SUPPORTS_DYNAMIC_PS
	.comm	_SUPPORT_FAST_XMIT,4,2          ## @SUPPORT_FAST_XMIT
	.comm	_SUPPORTS_AMSDU_IN_AMPDU,4,2    ## @SUPPORTS_AMSDU_IN_AMPDU
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_WIPHY_FLAG_SUPPORTS_TDLS,4,2   ## @WIPHY_FLAG_SUPPORTS_TDLS
	.comm	_WIPHY_FLAG_TDLS_EXTERNAL_SETUP,4,2 ## @WIPHY_FLAG_TDLS_EXTERNAL_SETUP
	.comm	_NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR,4,2 ## @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR
	.comm	_rtw_regd_notifier,4,2          ## @rtw_regd_notifier
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register hw\n"

L_.str.1:                               ## @.str.1
	.asciz	"regulatory_hint fail\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_register_hw                ; -- Begin function rtw_register_hw
	.p2align	2
_rtw_register_hw:                       ; @rtw_register_hw
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	str	w8, [x1]
Lloh0:
	adrp	x8, _IEEE80211_NUM_ACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_NUM_ACS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #24]
	movi.2s	v0, #4
	stur	d0, [x1, #4]
Lloh3:
	adrp	x8, _SIGNAL_DBM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGNAL_DBM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh6:
	adrp	x8, _RX_INCLUDES_FCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_INCLUDES_FCS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh9:
	adrp	x8, _AMPDU_AGGREGATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AMPDU_AGGREGATION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh12:
	adrp	x8, _MFP_CAPABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MFP_CAPABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh15:
	adrp	x8, _REPORTS_TX_ACK_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REPORTS_TX_ACK_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh18:
	adrp	x8, _SUPPORTS_PS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUPPORTS_PS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh21:
	adrp	x8, _SUPPORTS_DYNAMIC_PS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SUPPORTS_DYNAMIC_PS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh24:
	adrp	x8, _SUPPORT_FAST_XMIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SUPPORT_FAST_XMIT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh27:
	adrp	x8, _SUPPORTS_AMSDU_IN_AMPDU@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SUPPORTS_AMSDU_IN_AMPDU@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh30:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh33:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
Lloh36:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
Lloh39:
	adrp	x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w21, w0
	ldr	x9, [x20, #16]
	str	w8, [x9]
Lloh42:
	adrp	x8, _WIPHY_FLAG_SUPPORTS_TDLS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WIPHY_FLAG_SUPPORTS_TDLS@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x10, _WIPHY_FLAG_TDLS_EXTERNAL_SETUP@GOTPAGE
Lloh46:
	ldr	x10, [x10, _WIPHY_FLAG_TDLS_EXTERNAL_SETUP@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh48:
	adrp	x10, _NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR@GOTPAGE
Lloh49:
	ldr	x10, [x10, _NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR@GOTPAGEOFF]
	ldp	w11, w12, [x9, #4]
	orr	w8, w8, w11
Lloh50:
	ldr	w10, [x10]
	orr	w10, w12, w10
	stp	w8, w10, [x9, #4]
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_rtw_set_supported_band
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_SET_IEEE80211_PERM_ADDR
Lloh51:
	adrp	x8, _rtw_regd_notifier@GOTPAGE
Lloh52:
	ldr	x8, [x8, _rtw_regd_notifier@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_regd_init
	mov	x0, x20
	bl	_ieee80211_register_hw
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
	b	LBB0_5
LBB0_2:
	ldr	x0, [x20, #16]
	ldr	w1, [x19]
	bl	_regulatory_hint
	cbz	x0, LBB0_4
; %bb.3:
Lloh56:
	adrp	x1, l_.str.1@PAGE
Lloh57:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
LBB0_4:
	mov	x0, x19
	bl	_rtw_debugfs_init
LBB0_5:
	mov	x0, x21
	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	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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 AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_SIGNAL_DBM,4,2                 ; @SIGNAL_DBM
	.comm	_RX_INCLUDES_FCS,4,2            ; @RX_INCLUDES_FCS
	.comm	_AMPDU_AGGREGATION,4,2          ; @AMPDU_AGGREGATION
	.comm	_MFP_CAPABLE,4,2                ; @MFP_CAPABLE
	.comm	_REPORTS_TX_ACK_STATUS,4,2      ; @REPORTS_TX_ACK_STATUS
	.comm	_SUPPORTS_PS,4,2                ; @SUPPORTS_PS
	.comm	_SUPPORTS_DYNAMIC_PS,4,2        ; @SUPPORTS_DYNAMIC_PS
	.comm	_SUPPORT_FAST_XMIT,4,2          ; @SUPPORT_FAST_XMIT
	.comm	_SUPPORTS_AMSDU_IN_AMPDU,4,2    ; @SUPPORTS_AMSDU_IN_AMPDU
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_WIPHY_FLAG_SUPPORTS_TDLS,4,2   ; @WIPHY_FLAG_SUPPORTS_TDLS
	.comm	_WIPHY_FLAG_TDLS_EXTERNAL_SETUP,4,2 ; @WIPHY_FLAG_TDLS_EXTERNAL_SETUP
	.comm	_NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR,4,2 ; @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR
	.comm	_rtw_regd_notifier,4,2          ; @rtw_regd_notifier
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register hw\n"

l_.str.1:                               ; @.str.1
	.asciz	"regulatory_hint fail\n"

.subsections_via_symbols
