	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_mac_setup_register
_il4965_mac_setup_register:             ## @il4965_mac_setup_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_SUPPORTS_DYNAMIC_PS@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	_REPORTS_TX_ACK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SPECTRUM_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_NEED_DTIM_BEFORE_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SIGNAL_DBM@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	24(%r14), %rax
	movq	_IL_SKU_N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_NL80211_FEATURE_DYNAMIC_SMPS@GOTPCREL(%rip), %rax
	movq	_NL80211_FEATURE_STATIC_SMPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	24(%rbx), %rax
	orl	%ecx, (%rax)
LBB0_2:
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 8(%rbx)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r12d, %eax
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rax
	movl	28(%rcx), %edx
	orl	(%rax), %edx
	movq	_REGULATORY_CUSTOM_REG@GOTPCREL(%rip), %rax
	movq	_REGULATORY_DISABLE_BEACON_HINTS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	orl	%esi, 8(%rcx)
	movq	_WIPHY_FLAG_PS_ON_BY_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edx, %eax
	movl	%eax, 28(%rcx)
	movq	_PROBE_OPTION_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	addl	$-26, %r15d
	movl	%r15d, 12(%rcx)
	movl	$4, 16(%rbx)
	movq	_IL_CONN_MAX_LISTEN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	16(%r14), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	leaq	(%rax,%rcx,8), %rax
	movq	8(%r14), %rdx
	movq	24(%rdx), %rdx
	movq	16(%rdx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	16(%r14), %rax
LBB0_4:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.5:
	leaq	(%rax,%rcx,8), %rax
	movq	8(%r14), %rdx
	movq	24(%rdx), %rdx
	movq	16(%rdx), %rdx
	movq	%rax, (%rdx,%rcx,8)
LBB0_6:
	movq	%r14, %rdi
	callq	_il_leds_init
	movq	8(%r14), %rax
	movq	24(%rax), %rdi
	movq	_NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wiphy_ext_feature_set
	movq	8(%r14), %rdi
	callq	_ieee80211_register_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_IL_ERR
	jmp	LBB0_9
LBB0_8:
	movl	$1, (%r14)
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iwl-4965-rs"

	.comm	_SUPPORTS_DYNAMIC_PS,4,2        ## @SUPPORTS_DYNAMIC_PS
	.comm	_SUPPORTS_PS,4,2                ## @SUPPORTS_PS
	.comm	_REPORTS_TX_ACK_STATUS,4,2      ## @REPORTS_TX_ACK_STATUS
	.comm	_SPECTRUM_MGMT,4,2              ## @SPECTRUM_MGMT
	.comm	_NEED_DTIM_BEFORE_ASSOC,4,2     ## @NEED_DTIM_BEFORE_ASSOC
	.comm	_SIGNAL_DBM,4,2                 ## @SIGNAL_DBM
	.comm	_AMPDU_AGGREGATION,4,2          ## @AMPDU_AGGREGATION
	.comm	_IL_SKU_N,4,2                   ## @IL_SKU_N
	.comm	_NL80211_FEATURE_DYNAMIC_SMPS,4,2 ## @NL80211_FEATURE_DYNAMIC_SMPS
	.comm	_NL80211_FEATURE_STATIC_SMPS,4,2 ## @NL80211_FEATURE_STATIC_SMPS
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_REGULATORY_CUSTOM_REG,4,2      ## @REGULATORY_CUSTOM_REG
	.comm	_REGULATORY_DISABLE_BEACON_HINTS,4,2 ## @REGULATORY_DISABLE_BEACON_HINTS
	.comm	_WIPHY_FLAG_PS_ON_BY_DEFAULT,4,2 ## @WIPHY_FLAG_PS_ON_BY_DEFAULT
	.comm	_PROBE_OPTION_MAX,4,2           ## @PROBE_OPTION_MAX
	.comm	_IL_CONN_MAX_LISTEN_INTERVAL,4,2 ## @IL_CONN_MAX_LISTEN_INTERVAL
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ## @NL80211_EXT_FEATURE_CQM_RSSI_LIST
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register hw (error %d)\n"

	.no_dead_strip	_il4965_mac_setup_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_mac_setup_register
_il4965_mac_setup_register:             ; @il4965_mac_setup_register
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
Lloh2:
	adrp	x8, _SUPPORTS_DYNAMIC_PS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUPPORTS_DYNAMIC_PS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh5:
	adrp	x8, _SUPPORTS_PS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUPPORTS_PS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh8:
	adrp	x8, _REPORTS_TX_ACK_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REPORTS_TX_ACK_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh11:
	adrp	x8, _SPECTRUM_MGMT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPECTRUM_MGMT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh14:
	adrp	x8, _NEED_DTIM_BEFORE_ASSOC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NEED_DTIM_BEFORE_ASSOC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh17:
	adrp	x8, _SIGNAL_DBM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGNAL_DBM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh20:
	adrp	x8, _AMPDU_AGGREGATION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AMPDU_AGGREGATION@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _IL_SKU_N@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IL_SKU_N@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh26:
	adrp	x8, _NL80211_FEATURE_DYNAMIC_SMPS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NL80211_FEATURE_DYNAMIC_SMPS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _NL80211_FEATURE_STATIC_SMPS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NL80211_FEATURE_STATIC_SMPS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x20, #24]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
LBB0_2:
	movi.2s	v0, #4
	str	d0, [x20, #8]
Lloh32:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh35:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w22
	ldr	x9, [x20, #24]
Lloh38:
	adrp	x10, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh39:
	ldr	x10, [x10, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	ldr	w11, [x9, #28]
	orr	w10, w11, w10
Lloh41:
	adrp	x11, _REGULATORY_CUSTOM_REG@GOTPAGE
Lloh42:
	ldr	x11, [x11, _REGULATORY_CUSTOM_REG@GOTPAGEOFF]
Lloh43:
	adrp	x12, _REGULATORY_DISABLE_BEACON_HINTS@GOTPAGE
Lloh44:
	ldr	x12, [x12, _REGULATORY_DISABLE_BEACON_HINTS@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11]
Lloh46:
	ldr	w12, [x12]
	orr	w11, w12, w11
	ldr	w12, [x9, #8]
	orr	w11, w11, w12
	stp	w8, w11, [x9, #4]
Lloh47:
	adrp	x8, _WIPHY_FLAG_PS_ON_BY_DEFAULT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WIPHY_FLAG_PS_ON_BY_DEFAULT@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x11, _PROBE_OPTION_MAX@GOTPAGE
Lloh51:
	ldr	x11, [x11, _PROBE_OPTION_MAX@GOTPAGEOFF]
	bic	w8, w10, w8
Lloh52:
	ldr	w10, [x11]
	stp	w10, w8, [x9, #24]
	sub	w8, w21, #26
	str	w8, [x9, #12]
	mov	w8, #4
	str	w8, [x20, #16]
Lloh53:
	adrp	x8, _IL_CONN_MAX_LISTEN_INTERVAL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IL_CONN_MAX_LISTEN_INTERVAL@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	ldr	x8, [x19, #16]
Lloh56:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh57:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	add	x10, x8, x9, lsl #3
	ldr	x11, [x10]
	cbz	x11, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	ldr	x8, [x8, #16]
	str	x10, [x8, x9, lsl #3]
	ldr	x8, [x19, #16]
LBB0_4:
Lloh59:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh60:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldr	x10, [x8]
	cbz	x10, LBB0_6
; %bb.5:
	ldr	x10, [x19, #8]
	ldr	x10, [x10, #24]
	ldr	x10, [x10, #16]
	str	x8, [x10, x9, lsl #3]
LBB0_6:
	mov	x0, x19
	bl	_il_leds_init
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #24]
Lloh62:
	adrp	x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGE
Lloh63:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	bl	_wiphy_ext_feature_set
	ldr	x0, [x19, #8]
	bl	_ieee80211_register_hw
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh65:
	adrp	x0, l_.str.1@PAGE
Lloh66:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_IL_ERR
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh45
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iwl-4965-rs"

	.comm	_SUPPORTS_DYNAMIC_PS,4,2        ; @SUPPORTS_DYNAMIC_PS
	.comm	_SUPPORTS_PS,4,2                ; @SUPPORTS_PS
	.comm	_REPORTS_TX_ACK_STATUS,4,2      ; @REPORTS_TX_ACK_STATUS
	.comm	_SPECTRUM_MGMT,4,2              ; @SPECTRUM_MGMT
	.comm	_NEED_DTIM_BEFORE_ASSOC,4,2     ; @NEED_DTIM_BEFORE_ASSOC
	.comm	_SIGNAL_DBM,4,2                 ; @SIGNAL_DBM
	.comm	_AMPDU_AGGREGATION,4,2          ; @AMPDU_AGGREGATION
	.comm	_IL_SKU_N,4,2                   ; @IL_SKU_N
	.comm	_NL80211_FEATURE_DYNAMIC_SMPS,4,2 ; @NL80211_FEATURE_DYNAMIC_SMPS
	.comm	_NL80211_FEATURE_STATIC_SMPS,4,2 ; @NL80211_FEATURE_STATIC_SMPS
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_REGULATORY_CUSTOM_REG,4,2      ; @REGULATORY_CUSTOM_REG
	.comm	_REGULATORY_DISABLE_BEACON_HINTS,4,2 ; @REGULATORY_DISABLE_BEACON_HINTS
	.comm	_WIPHY_FLAG_PS_ON_BY_DEFAULT,4,2 ; @WIPHY_FLAG_PS_ON_BY_DEFAULT
	.comm	_PROBE_OPTION_MAX,4,2           ; @PROBE_OPTION_MAX
	.comm	_IL_CONN_MAX_LISTEN_INTERVAL,4,2 ; @IL_CONN_MAX_LISTEN_INTERVAL
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ; @NL80211_EXT_FEATURE_CQM_RSSI_LIST
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register hw (error %d)\n"

	.no_dead_strip	_il4965_mac_setup_register
.subsections_via_symbols
