	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlme_reset_request_sync
_mlme_reset_request_sync:               ## @mlme_reset_request_sync
	.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	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SPI_MLME_RESET_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, -40(%rbp)
	movq	%rdi, -24(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rdx
	movl	$3, %esi
	movq	%r14, %rcx
	callq	_cascoda_api_downstream
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	-80(%rbp), %rax
	movq	_SPI_MLME_RESET_CONFIRM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	-64(%rbp), %rax
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movq	_CA8210_MAC_WORKAROUNDS@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_CA8210_SFR_MACCON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_tdme_setsfr_request_sync
	jmp	LBB0_8
LBB0_3:
	movq	_MAC_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_MLME_RESET_REQUEST,8,3     ## @SPI_MLME_RESET_REQUEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cascoda_api_downstream failed\n"

	.comm	_MAC_SYSTEM_ERROR,8,3           ## @MAC_SYSTEM_ERROR
	.comm	_SPI_MLME_RESET_CONFIRM,8,3     ## @SPI_MLME_RESET_CONFIRM
	.comm	_CA8210_MAC_WORKAROUNDS,8,3     ## @CA8210_MAC_WORKAROUNDS
	.comm	_CA8210_SFR_MACCON,4,2          ## @CA8210_SFR_MACCON
	.no_dead_strip	_mlme_reset_request_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlme_reset_request_sync
_mlme_reset_request_sync:               ; @mlme_reset_request_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SPI_MLME_RESET_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_MLME_RESET_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	mov	w8, #1
	str	w8, [sp, #40]
	str	x0, [sp, #56]
	add	x0, sp, #32
	mov	x2, sp
	mov	w1, #3
	mov	x3, x19
	bl	_cascoda_api_downstream
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	ldr	x8, [sp]
Lloh5:
	adrp	x9, _SPI_MLME_RESET_CONFIRM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPI_MLME_RESET_CONFIRM@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [sp, #16]
	cbz	x20, LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _CA8210_MAC_WORKAROUNDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CA8210_MAC_WORKAROUNDS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	x0, #0, #0, ne
	b.ne	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _CA8210_SFR_MACCON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CA8210_SFR_MACCON@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #0
	mov	x3, x19
	bl	_tdme_setsfr_request_sync
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _MAC_SYSTEM_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAC_SYSTEM_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_MLME_RESET_REQUEST,8,3     ; @SPI_MLME_RESET_REQUEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cascoda_api_downstream failed\n"

	.comm	_MAC_SYSTEM_ERROR,8,3           ; @MAC_SYSTEM_ERROR
	.comm	_SPI_MLME_RESET_CONFIRM,8,3     ; @SPI_MLME_RESET_CONFIRM
	.comm	_CA8210_MAC_WORKAROUNDS,8,3     ; @CA8210_MAC_WORKAROUNDS
	.comm	_CA8210_SFR_MACCON,4,2          ; @CA8210_SFR_MACCON
	.no_dead_strip	_mlme_reset_request_sync
.subsections_via_symbols
