	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_acx_rssi_snr_trigger    ## -- Begin function wl1271_acx_rssi_snr_trigger
	.p2align	4, 0x90
_wl1271_acx_rssi_snr_trigger:           ## @wl1271_acx_rssi_snr_trigger
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$-1, (%r15)
	movl	4(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	movq	_WL1271_ACX_TRIG_METRIC_RSSI_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_WL1271_ACX_TRIG_TYPE_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.4:
	movq	_WL1271_ACX_TRIG_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_WL1271_ACX_TRIG_ENABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_WL1271_ACX_TRIG_IDX_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_WL1271_ACX_TRIG_DIR_BIDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	%r12d, (%rbx)
	movq	_ACX_RSSI_SNR_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$56, %ecx
	callq	_wl1271_cmd_configure
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_wl1271_warning
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ACX,4,2                  ## @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acx rssi snr trigger"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WL1271_ACX_TRIG_METRIC_RSSI_BEACON,4,2 ## @WL1271_ACX_TRIG_METRIC_RSSI_BEACON
	.comm	_WL1271_ACX_TRIG_TYPE_EDGE,4,2  ## @WL1271_ACX_TRIG_TYPE_EDGE
	.comm	_WL1271_ACX_TRIG_ENABLE,4,2     ## @WL1271_ACX_TRIG_ENABLE
	.comm	_WL1271_ACX_TRIG_DISABLE,4,2    ## @WL1271_ACX_TRIG_DISABLE
	.comm	_WL1271_ACX_TRIG_IDX_RSSI,4,2   ## @WL1271_ACX_TRIG_IDX_RSSI
	.comm	_WL1271_ACX_TRIG_DIR_BIDIR,4,2  ## @WL1271_ACX_TRIG_DIR_BIDIR
	.comm	_ACX_RSSI_SNR_TRIGGER,4,2       ## @ACX_RSSI_SNR_TRIGGER
L_.str.1:                               ## @.str.1
	.asciz	"acx rssi snr trigger setting failed: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_acx_rssi_snr_trigger    ; -- Begin function wl1271_acx_rssi_snr_trigger
	.p2align	2
_wl1271_acx_rssi_snr_trigger:           ; @wl1271_acx_rssi_snr_trigger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #-1
	str	w8, [x24]
	ldr	w8, [x24, #4]
	str	w8, [x19, #48]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [x19, #40]
Lloh8:
	adrp	x8, _WL1271_ACX_TRIG_METRIC_RSSI_BEACON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL1271_ACX_TRIG_METRIC_RSSI_BEACON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _WL1271_ACX_TRIG_TYPE_EDGE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WL1271_ACX_TRIG_TYPE_EDGE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
Lloh14:
	adrp	x8, _WL1271_ACX_TRIG_DISABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WL1271_ACX_TRIG_DISABLE@GOTPAGEOFF]
Lloh16:
	adrp	x9, _WL1271_ACX_TRIG_ENABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WL1271_ACX_TRIG_ENABLE@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh18:
	adrp	x8, _WL1271_ACX_TRIG_IDX_RSSI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WL1271_ACX_TRIG_IDX_RSSI@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _WL1271_ACX_TRIG_DIR_BIDIR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WL1271_ACX_TRIG_DIR_BIDIR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	str	w21, [x19]
Lloh24:
	adrp	x8, _ACX_RSSI_SNR_TRIGGER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACX_RSSI_SNR_TRIGGER@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #56
	bl	_wl1271_cmd_configure
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wl1271_warning
	b	LBB0_4
LBB0_3:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acx rssi snr trigger"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WL1271_ACX_TRIG_METRIC_RSSI_BEACON,4,2 ; @WL1271_ACX_TRIG_METRIC_RSSI_BEACON
	.comm	_WL1271_ACX_TRIG_TYPE_EDGE,4,2  ; @WL1271_ACX_TRIG_TYPE_EDGE
	.comm	_WL1271_ACX_TRIG_ENABLE,4,2     ; @WL1271_ACX_TRIG_ENABLE
	.comm	_WL1271_ACX_TRIG_DISABLE,4,2    ; @WL1271_ACX_TRIG_DISABLE
	.comm	_WL1271_ACX_TRIG_IDX_RSSI,4,2   ; @WL1271_ACX_TRIG_IDX_RSSI
	.comm	_WL1271_ACX_TRIG_DIR_BIDIR,4,2  ; @WL1271_ACX_TRIG_DIR_BIDIR
	.comm	_ACX_RSSI_SNR_TRIGGER,4,2       ; @ACX_RSSI_SNR_TRIGGER
l_.str.1:                               ; @.str.1
	.asciz	"acx rssi snr trigger setting failed: %d"

.subsections_via_symbols
