	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_test_check_upstream
_ca8210_test_check_upstream:            ## @ca8210_test_check_upstream
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CA8210_SPI_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r12), %eax
	movq	_SPI_MLME_SET_REQUEST@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.1:
	movl	8(%r12), %edi
	movl	16(%r12), %esi
	leaq	20(%r12), %rdx
	callq	_tdme_checkpibattribute
	testl	%eax, %eax
	je	LBB0_2
## %bb.19:
	movl	%eax, %r15d
	movq	_SPI_MLME_SET_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$3, 4(%rbx)
	movq	_MAC_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	12(%r12), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movl	$5, %esi
	movq	%r14, %rdx
	callq	_cascoda_api_upstream
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r12), %eax
LBB0_3:
	movq	_SPI_MLME_ASSOCIATE_REQUEST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.4:
	movl	8(%r12), %edi
	jmp	LBB0_5
LBB0_7:
	movq	_SPI_MLME_START_REQUEST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_8:
	movl	16(%r12), %edi
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.6:
	movq	%r14, %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tdme_channelinit               ## TAILCALL
LBB0_9:
	cmpl	(%r13), %eax
	jne	LBB0_12
## %bb.10:
	movl	8(%r12), %ecx
	movq	_PHY_CURRENT_CHANNEL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
## %bb.11:
	movl	20(%r12), %edi
	jmp	LBB0_5
LBB0_12:
	movq	_SPI_TDME_SET_REQUEST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	movl	8(%r12), %ecx
	movq	_TDME_CHANNEL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_8
LBB0_14:
	movq	_CA8210_MAC_WORKAROUNDS@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	$0, (%rcx)
	je	LBB0_20
## %bb.15:
	movq	_SPI_MLME_RESET_REQUEST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.16:
	cmpl	$1, 8(%r12)
	jne	LBB0_20
## %bb.17:
	movq	_CA8210_SFR_MACCON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.18:
	xorl	%edi, %edi
	xorl	%edx, %edx
	movq	%r14, %rcx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tdme_setsfr_request_sync       ## TAILCALL
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CA8210_SPI_BUF_SIZE,4,2        ## @CA8210_SPI_BUF_SIZE
	.comm	_SPI_MLME_SET_REQUEST,4,2       ## @SPI_MLME_SET_REQUEST
	.comm	_SPI_MLME_SET_CONFIRM,4,2       ## @SPI_MLME_SET_CONFIRM
	.comm	_MAC_INVALID_PARAMETER,4,2      ## @MAC_INVALID_PARAMETER
	.comm	_SPI_MLME_ASSOCIATE_REQUEST,4,2 ## @SPI_MLME_ASSOCIATE_REQUEST
	.comm	_SPI_MLME_START_REQUEST,4,2     ## @SPI_MLME_START_REQUEST
	.comm	_PHY_CURRENT_CHANNEL,4,2        ## @PHY_CURRENT_CHANNEL
	.comm	_SPI_TDME_SET_REQUEST,4,2       ## @SPI_TDME_SET_REQUEST
	.comm	_TDME_CHANNEL,4,2               ## @TDME_CHANNEL
	.comm	_CA8210_MAC_WORKAROUNDS,8,3     ## @CA8210_MAC_WORKAROUNDS
	.comm	_SPI_MLME_RESET_REQUEST,4,2     ## @SPI_MLME_RESET_REQUEST
	.comm	_CA8210_SFR_MACCON,4,2          ## @CA8210_SFR_MACCON
	.no_dead_strip	_ca8210_test_check_upstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_test_check_upstream
_ca8210_test_check_upstream:            ; @ca8210_test_check_upstream
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CA8210_SPI_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CA8210_SPI_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x0]
Lloh8:
	adrp	x23, _SPI_MLME_SET_REQUEST@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SPI_MLME_SET_REQUEST@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [x20, #8]
	ldr	w1, [x20, #16]
	add	x2, x20, #20
	bl	_tdme_checkpibattribute
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh10:
	adrp	x8, _SPI_MLME_SET_CONFIRM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPI_MLME_SET_CONFIRM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #3
	stp	w8, w9, [x21]
Lloh13:
	adrp	x8, _MAC_INVALID_PARAMETER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAC_INVALID_PARAMETER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	d0, [x20, #8]
	stur	d0, [x21, #12]
	mov	x0, x21
	mov	w1, #5
	mov	x2, x19
	bl	_cascoda_api_upstream
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.4:
	mov	x0, x22
	sub	sp, x29, #48
	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
LBB0_5:
	ldr	w8, [x20]
LBB0_6:
Lloh19:
	adrp	x9, _SPI_MLME_ASSOCIATE_REQUEST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SPI_MLME_ASSOCIATE_REQUEST@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x9, _SPI_MLME_START_REQUEST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPI_MLME_START_REQUEST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_9:
	ldr	w0, [x20, #16]
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.11:
	mov	x1, x19
	sub	sp, x29, #48
	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
	b	_tdme_channelinit
LBB0_12:
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.13:
	ldr	w9, [x20, #8]
Lloh28:
	adrp	x10, _PHY_CURRENT_CHANNEL@GOTPAGE
Lloh29:
	ldr	x10, [x10, _PHY_CURRENT_CHANNEL@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x20, #20]
	b	LBB0_10
LBB0_15:
Lloh31:
	adrp	x9, _SPI_TDME_SET_REQUEST@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SPI_TDME_SET_REQUEST@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
	ldr	w9, [x20, #8]
Lloh34:
	adrp	x10, _TDME_CHANNEL@GOTPAGE
Lloh35:
	ldr	x10, [x10, _TDME_CHANNEL@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_9
LBB0_17:
Lloh37:
	adrp	x9, _CA8210_MAC_WORKAROUNDS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CA8210_MAC_WORKAROUNDS@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
Lloh40:
	adrp	x10, _SPI_MLME_RESET_REQUEST@GOTPAGE
Lloh41:
	ldr	x10, [x10, _SPI_MLME_RESET_REQUEST@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	cmp	x9, #0
	ccmp	w8, w10, #0, ne
	b.ne	LBB0_21
; %bb.18:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.19:
Lloh43:
	adrp	x8, _CA8210_SFR_MACCON@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CA8210_SFR_MACCON@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldur	x8, [x29, #-56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	mov	w0, #0
	mov	w2, #0
	mov	x3, x19
	sub	sp, x29, #48
	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
	b	_tdme_setsfr_request_sync
LBB0_21:
	mov	w22, #0
	b	LBB0_3
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_CA8210_SPI_BUF_SIZE,4,2        ; @CA8210_SPI_BUF_SIZE
	.comm	_SPI_MLME_SET_REQUEST,4,2       ; @SPI_MLME_SET_REQUEST
	.comm	_SPI_MLME_SET_CONFIRM,4,2       ; @SPI_MLME_SET_CONFIRM
	.comm	_MAC_INVALID_PARAMETER,4,2      ; @MAC_INVALID_PARAMETER
	.comm	_SPI_MLME_ASSOCIATE_REQUEST,4,2 ; @SPI_MLME_ASSOCIATE_REQUEST
	.comm	_SPI_MLME_START_REQUEST,4,2     ; @SPI_MLME_START_REQUEST
	.comm	_PHY_CURRENT_CHANNEL,4,2        ; @PHY_CURRENT_CHANNEL
	.comm	_SPI_TDME_SET_REQUEST,4,2       ; @SPI_TDME_SET_REQUEST
	.comm	_TDME_CHANNEL,4,2               ; @TDME_CHANNEL
	.comm	_CA8210_MAC_WORKAROUNDS,8,3     ; @CA8210_MAC_WORKAROUNDS
	.comm	_SPI_MLME_RESET_REQUEST,4,2     ; @SPI_MLME_RESET_REQUEST
	.comm	_CA8210_SFR_MACCON,4,2          ; @CA8210_SFR_MACCON
	.no_dead_strip	_ca8210_test_check_upstream
.subsections_via_symbols
