	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_target_config_wlan_params
_ath6kl_target_config_wlan_params:      ## @ath6kl_target_config_wlan_params
	.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, %r14d
	movq	%rdi, %r15
	movl	12(%rdi), %edi
	movl	16(%r15), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ath6kl_wmi_set_rx_frame_format_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%ebx, %esi
	callq	_ath6kl_err
LBB0_26:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r15), %eax
	movq	_ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movl	12(%r15), %edi
	movq	_IGNORE_PS_FAIL_DURING_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$1
	callq	_ath6kl_wmi_pmparams_cmd
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.27:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movl	(%r15), %eax
LBB0_6:
	movq	_ATH6KL_CONF_IGNORE_ERP_BARKER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_9:
	movl	12(%r15), %edi
	movq	_WLAN_CONFIG_KEEP_ALIVE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_ath6kl_wmi_set_keepalive_cmd
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	movl	12(%r15), %edi
	movq	_WMI_FOLLOW_BARKER_IN_ERP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ath6kl_wmi_set_lpreamble_cmd
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	movl	12(%r15), %edi
	movq	_WLAN_CONFIG_DISCONNECT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_ath6kl_wmi_disctimeout_cmd
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_13:
	movq	_ATH6KL_CONF_ENABLE_TX_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_14
LBB0_16:
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r15)
	je	LBB0_26
## %bb.17:
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.18:
	cmpl	$1, 8(%r15)
	je	LBB0_19
LBB0_22:
	testl	%r14d, %r14d
	jne	LBB0_24
## %bb.23:
	cmpl	$1, 8(%r15)
	jne	LBB0_26
LBB0_24:
	movl	12(%r15), %edi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_ath6kl_wmi_probe_report_req_cmd
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r14d
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edx
	callq	_ath6kl_dbg
	movl	%r14d, %ebx
	jmp	LBB0_26
LBB0_14:
	movl	12(%r15), %edi
	movq	_WMI_TXOP_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_ath6kl_wmi_set_wmm_txop
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_19:
	movq	_P2P_FLAG_CAPABILITIES_REQ@GOTPCREL(%rip), %rax
	movq	_P2P_FLAG_MACADDR_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	12(%r15), %edi
	movq	_P2P_FLAG_HMODEL_REQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%r14d, %esi
	callq	_ath6kl_wmi_info_req_cmd
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r12d
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	callq	_ath6kl_dbg
	movl	$0, 4(%r15)
	movl	%r12d, %ebx
	jmp	LBB0_26
LBB0_21:
	cmpl	$0, 4(%r15)
	jne	LBB0_22
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to set the rx frame format: %d\n"

	.comm	_ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN,4,2 ## @ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN
	.comm	_IGNORE_PS_FAIL_DURING_SCAN,4,2 ## @IGNORE_PS_FAIL_DURING_SCAN
L_.str.1:                               ## @.str.1
	.asciz	"unable to set power save fail event policy: %d\n"

	.comm	_ATH6KL_CONF_IGNORE_ERP_BARKER,4,2 ## @ATH6KL_CONF_IGNORE_ERP_BARKER
	.comm	_WMI_FOLLOW_BARKER_IN_ERP,4,2   ## @WMI_FOLLOW_BARKER_IN_ERP
L_.str.2:                               ## @.str.2
	.asciz	"unable to set barker preamble policy: %d\n"

	.comm	_WLAN_CONFIG_KEEP_ALIVE_INTERVAL,4,2 ## @WLAN_CONFIG_KEEP_ALIVE_INTERVAL
L_.str.3:                               ## @.str.3
	.asciz	"unable to set keep alive interval: %d\n"

	.comm	_WLAN_CONFIG_DISCONNECT_TIMEOUT,4,2 ## @WLAN_CONFIG_DISCONNECT_TIMEOUT
L_.str.4:                               ## @.str.4
	.asciz	"unable to set disconnect timeout: %d\n"

	.comm	_ATH6KL_CONF_ENABLE_TX_BURST,4,2 ## @ATH6KL_CONF_ENABLE_TX_BURST
	.comm	_WMI_TXOP_DISABLED,4,2          ## @WMI_TXOP_DISABLED
L_.str.5:                               ## @.str.5
	.asciz	"unable to set txop bursting: %d\n"

	.comm	_P2P_FLAG_CAPABILITIES_REQ,4,2  ## @P2P_FLAG_CAPABILITIES_REQ
	.comm	_P2P_FLAG_MACADDR_REQ,4,2       ## @P2P_FLAG_MACADDR_REQ
	.comm	_P2P_FLAG_HMODEL_REQ,4,2        ## @P2P_FLAG_HMODEL_REQ
	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
L_.str.6:                               ## @.str.6
	.asciz	"failed to request P2P capabilities (%d) - assuming P2P not supported\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to enable Probe Request reporting (%d)\n"

	.no_dead_strip	_ath6kl_target_config_wlan_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_target_config_wlan_params
_ath6kl_target_config_wlan_params:      ; @ath6kl_target_config_wlan_params
	.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	w0, [x0, #12]
	ldr	w2, [x19, #16]
	mov	w3, #0
	mov	w4, #0
	bl	_ath6kl_wmi_set_rx_frame_format_cmd
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	mov	x1, x21
	bl	_ath6kl_err
LBB0_3:
	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
LBB0_4:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x8, _IGNORE_PS_FAIL_DURING_SCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IGNORE_PS_FAIL_DURING_SCAN@GOTPAGEOFF]
Lloh7:
	ldr	w7, [x8]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_ath6kl_wmi_pmparams_cmd
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	ldr	w8, [x19]
LBB0_8:
Lloh10:
	adrp	x9, _ATH6KL_CONF_IGNORE_ERP_BARKER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ATH6KL_CONF_IGNORE_ERP_BARKER@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_9:
	ldr	w0, [x19, #12]
Lloh13:
	adrp	x8, _WLAN_CONFIG_KEEP_ALIVE_INTERVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WLAN_CONFIG_KEEP_ALIVE_INTERVAL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_ath6kl_wmi_set_keepalive_cmd
	cbz	w0, LBB0_13
; %bb.10:
	mov	x21, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_11:
	ldr	w0, [x19, #12]
Lloh18:
	adrp	x8, _WMI_FOLLOW_BARKER_IN_ERP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WMI_FOLLOW_BARKER_IN_ERP@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, x20
	mov	w2, #0
	bl	_ath6kl_wmi_set_lpreamble_cmd
	cbz	w0, LBB0_9
; %bb.12:
	mov	x21, x0
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_13:
	ldr	w0, [x19, #12]
Lloh23:
	adrp	x8, _WLAN_CONFIG_DISCONNECT_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WLAN_CONFIG_DISCONNECT_TIMEOUT@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_ath6kl_wmi_disctimeout_cmd
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_15:
	ldr	w8, [x19]
Lloh28:
	adrp	x9, _ATH6KL_CONF_ENABLE_TX_BURST@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ATH6KL_CONF_ENABLE_TX_BURST@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_16:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_21
; %bb.17:
	cbnz	w20, LBB0_24
; %bb.18:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_24
LBB0_19:
	cbnz	w20, LBB0_26
; %bb.20:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_26
LBB0_21:
	mov	w21, #0
	b	LBB0_3
LBB0_22:
	ldr	w0, [x19, #12]
Lloh31:
	adrp	x8, _WMI_TXOP_DISABLED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WMI_TXOP_DISABLED@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_ath6kl_wmi_set_wmm_txop
	cbz	w0, LBB0_16
; %bb.23:
	mov	x21, x0
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_24:
	ldr	w0, [x19, #12]
Lloh36:
	adrp	x8, _P2P_FLAG_CAPABILITIES_REQ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _P2P_FLAG_CAPABILITIES_REQ@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _P2P_FLAG_MACADDR_REQ@GOTPAGE
Lloh40:
	ldr	x9, [x9, _P2P_FLAG_MACADDR_REQ@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _P2P_FLAG_HMODEL_REQ@GOTPAGE
Lloh43:
	ldr	x9, [x9, _P2P_FLAG_HMODEL_REQ@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x1, x20
	bl	_ath6kl_wmi_info_req_cmd
	cbz	w0, LBB0_28
; %bb.25:
	mov	x21, x0
Lloh45:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_ath6kl_dbg
	str	wzr, [x19, #4]
	b	LBB0_3
LBB0_26:
	ldr	w0, [x19, #12]
	mov	x1, x20
	mov	w2, #1
	bl	_ath6kl_wmi_probe_report_req_cmd
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.27:
Lloh50:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.7@PAGE
Lloh54:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_ath6kl_dbg
	b	LBB0_3
LBB0_28:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_19
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to set the rx frame format: %d\n"

	.comm	_ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN,4,2 ; @ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN
	.comm	_IGNORE_PS_FAIL_DURING_SCAN,4,2 ; @IGNORE_PS_FAIL_DURING_SCAN
l_.str.1:                               ; @.str.1
	.asciz	"unable to set power save fail event policy: %d\n"

	.comm	_ATH6KL_CONF_IGNORE_ERP_BARKER,4,2 ; @ATH6KL_CONF_IGNORE_ERP_BARKER
	.comm	_WMI_FOLLOW_BARKER_IN_ERP,4,2   ; @WMI_FOLLOW_BARKER_IN_ERP
l_.str.2:                               ; @.str.2
	.asciz	"unable to set barker preamble policy: %d\n"

	.comm	_WLAN_CONFIG_KEEP_ALIVE_INTERVAL,4,2 ; @WLAN_CONFIG_KEEP_ALIVE_INTERVAL
l_.str.3:                               ; @.str.3
	.asciz	"unable to set keep alive interval: %d\n"

	.comm	_WLAN_CONFIG_DISCONNECT_TIMEOUT,4,2 ; @WLAN_CONFIG_DISCONNECT_TIMEOUT
l_.str.4:                               ; @.str.4
	.asciz	"unable to set disconnect timeout: %d\n"

	.comm	_ATH6KL_CONF_ENABLE_TX_BURST,4,2 ; @ATH6KL_CONF_ENABLE_TX_BURST
	.comm	_WMI_TXOP_DISABLED,4,2          ; @WMI_TXOP_DISABLED
l_.str.5:                               ; @.str.5
	.asciz	"unable to set txop bursting: %d\n"

	.comm	_P2P_FLAG_CAPABILITIES_REQ,4,2  ; @P2P_FLAG_CAPABILITIES_REQ
	.comm	_P2P_FLAG_MACADDR_REQ,4,2       ; @P2P_FLAG_MACADDR_REQ
	.comm	_P2P_FLAG_HMODEL_REQ,4,2        ; @P2P_FLAG_HMODEL_REQ
	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
l_.str.6:                               ; @.str.6
	.asciz	"failed to request P2P capabilities (%d) - assuming P2P not supported\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to enable Probe Request reporting (%d)\n"

	.no_dead_strip	_ath6kl_target_config_wlan_params
.subsections_via_symbols
