	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_set_cca_mode
_ca8210_set_cca_mode:                   ## @ca8210_set_cca_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movl	(%rsi), %eax
	andl	$3, %eax
	movl	%eax, -20(%rbp)
	cmpl	$3, %eax
	jne	LBB0_3
## %bb.1:
	movq	8(%rsi), %rax
	movq	_NL802154_CCA_OPT_ENERGY_CARRIER_OR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$0, -20(%rbp)
LBB0_3:
	movq	_PHY_CCA_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %r8
	leaq	-20(%rbp), %rcx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_mlme_set_request_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %edi
	callq	_link_to_linux_err
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL802154_CCA_OPT_ENERGY_CARRIER_OR,8,3 ## @NL802154_CCA_OPT_ENERGY_CARRIER_OR
	.comm	_PHY_CCA_MODE,4,2               ## @PHY_CCA_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error setting cca mode, MLME-SET.confirm status = %d"

	.no_dead_strip	_ca8210_set_cca_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_set_cca_mode
_ca8210_set_cca_mode:                   ; @ca8210_set_cca_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x20, [x0]
	ldr	w8, [x1]
	and	w8, w8, #0x3
	str	w8, [sp, #12]
	cmp	w8, #3
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _NL802154_CCA_OPT_ENERGY_CARRIER_OR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL802154_CCA_OPT_ENERGY_CARRIER_OR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [sp, #12]
LBB0_3:
Lloh3:
	adrp	x8, _PHY_CCA_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_CCA_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x4, [x20]
	add	x3, sp, #12
	mov	w1, #0
	mov	w2, #1
	bl	_mlme_set_request_sync
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x19
	bl	_link_to_linux_err
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NL802154_CCA_OPT_ENERGY_CARRIER_OR,8,3 ; @NL802154_CCA_OPT_ENERGY_CARRIER_OR
	.comm	_PHY_CCA_MODE,4,2               ; @PHY_CCA_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error setting cca mode, MLME-SET.confirm status = %d"

	.no_dead_strip	_ca8210_set_cca_mode
.subsections_via_symbols
