	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_acx_bet_enable          ## -- Begin function wl1271_acx_bet_enable
	.p2align	4, 0x90
_wl1271_acx_bet_enable:                 ## @wl1271_acx_bet_enable
	.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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_CONF_BET_MODE_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	(%r12), %eax
	movl	%eax, 16(%r13)
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.7:
	movq	_CONF_BET_MODE_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_CONF_BET_MODE_ENABLE@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	8(%r14), %eax
	movl	%eax, (%r13)
	movq	_ACX_BET_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	$24, %ecx
	callq	_wl1271_cmd_configure
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1271_warning
LBB0_10:
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %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 bet enable"

	.comm	_CONF_BET_MODE_DISABLE,8,3      ## @CONF_BET_MODE_DISABLE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CONF_BET_MODE_ENABLE,8,3       ## @CONF_BET_MODE_ENABLE
	.comm	_ACX_BET_ENABLE,4,2             ## @ACX_BET_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"acx bet enable failed: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_acx_bet_enable          ; -- Begin function wl1271_acx_bet_enable
	.p2align	2
_wl1271_acx_bet_enable:                 ; @wl1271_acx_bet_enable
	.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, x2
	mov	x22, 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	x23, _CONF_BET_MODE_DISABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CONF_BET_MODE_DISABLE@GOTPAGEOFF]
	cbz	w21, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x19, #0
	mov	w20, #0
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x22]
	str	w8, [x19, #16]
Lloh10:
	adrp	x8, _CONF_BET_MODE_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONF_BET_MODE_ENABLE@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x23, x8, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x20, #8]
	str	w8, [x19]
Lloh12:
	adrp	x8, _ACX_BET_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACX_BET_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #24
	bl	_wl1271_cmd_configure
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wl1271_warning
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acx bet enable"

	.comm	_CONF_BET_MODE_DISABLE,8,3      ; @CONF_BET_MODE_DISABLE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CONF_BET_MODE_ENABLE,8,3       ; @CONF_BET_MODE_ENABLE
	.comm	_ACX_BET_ENABLE,4,2             ; @ACX_BET_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"acx bet enable failed: %d"

.subsections_via_symbols
