	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hulusb_set_cca_ed_level
_hulusb_set_cca_ed_level:               ## @hulusb_set_cca_ed_level
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_SR_CCA_ED_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atusb_read_subreg
	movl	%eax, %r14d
	cmpl	$-100, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$-98, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_at86rf212_ed_levels_98@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_4:
	movq	_at86rf212_ed_levels_100@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	(%rbx), %rdi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rdi, 8(%rax)
	callq	_ARRAY_SIZE
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	(%rbx), %rax
	movl	%r14d, %edx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_6
LBB0_5:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_CCA_ED_THRES,4,2            ## @SR_CCA_ED_THRES
	.comm	_at86rf212_ed_levels_98,8,3     ## @at86rf212_ed_levels_98
	.comm	_at86rf212_ed_levels_100,8,3    ## @at86rf212_ed_levels_100
	.no_dead_strip	_hulusb_set_cca_ed_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hulusb_set_cca_ed_level
_hulusb_set_cca_ed_level:               ; @hulusb_set_cca_ed_level
	.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	x20, x0
Lloh0:
	adrp	x8, _SR_CCA_ED_THRES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR_CCA_ED_THRES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_atusb_read_subreg
	mov	x19, x0
	cmn	w21, #100
	b.eq	LBB0_3
; %bb.1:
	cmn	w21, #98
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x21, _at86rf212_ed_levels_98@GOTPAGE
Lloh4:
	ldr	x21, [x21, _at86rf212_ed_levels_98@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x21, _at86rf212_ed_levels_100@GOTPAGE
Lloh6:
	ldr	x21, [x21, _at86rf212_ed_levels_100@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x21]
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	bl	_ARRAY_SIZE
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	ldr	x9, [x21]
	ldr	x9, [x9, w19, uxtw #3]
	str	x9, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
LBB0_6:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_CCA_ED_THRES,4,2            ; @SR_CCA_ED_THRES
	.comm	_at86rf212_ed_levels_98,8,3     ; @at86rf212_ed_levels_98
	.comm	_at86rf212_ed_levels_100,8,3    ; @at86rf212_ed_levels_100
	.no_dead_strip	_hulusb_set_cca_ed_level
.subsections_via_symbols
