	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlme_set_request_sync
_mlme_set_request_sync:                 ## @mlme_set_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_tdme_checkpibattribute
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_MAC_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
LBB0_3:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PHY_CURRENT_CHANNEL@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_tdme_channelinit
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movq	_PHY_TRANSMIT_POWER@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	(%r13), %rdi
	movq	%r14, %rsi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tdme_settxpower                ## TAILCALL
LBB0_8:
	movq	_SPI_MLME_SET_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	_MAX_ATTRIBUTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	subl	%eax, %r14d
	leal	4(%r14), %eax
	movl	%eax, -96(%rbp)
	movq	%rbx, -56(%rbp)
	movq	%r12, -64(%rbp)
	movq	%r15, -72(%rbp)
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	addl	$6, %r14d
	leaq	-104(%rbp), %rdi
	leaq	-160(%rbp), %rdx
	movl	%r14d, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_cascoda_api_downstream
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	-160(%rbp), %rax
	movq	_SPI_MLME_SET_CONFIRM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	-144(%rbp), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_MAC_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_INVALID_PARAMETER,8,3      ## @MAC_INVALID_PARAMETER
	.comm	_PHY_CURRENT_CHANNEL,8,3        ## @PHY_CURRENT_CHANNEL
	.comm	_PHY_TRANSMIT_POWER,8,3         ## @PHY_TRANSMIT_POWER
	.comm	_SPI_MLME_SET_REQUEST,8,3       ## @SPI_MLME_SET_REQUEST
	.comm	_MAX_ATTRIBUTE_SIZE,4,2         ## @MAX_ATTRIBUTE_SIZE
	.comm	_MAC_SYSTEM_ERROR,8,3           ## @MAC_SYSTEM_ERROR
	.comm	_SPI_MLME_SET_CONFIRM,8,3       ## @SPI_MLME_SET_CONFIRM
	.no_dead_strip	_mlme_set_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_set_request_sync
_mlme_set_request_sync:                 ; @mlme_set_request_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x1, x2
	mov	x2, x3
	bl	_tdme_checkpibattribute
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MAC_INVALID_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
Lloh2:
	adrp	x8, _PHY_CURRENT_CHANNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHY_CURRENT_CHANNEL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_tdme_channelinit
	cbnz	x0, LBB0_3
LBB0_6:
Lloh5:
	adrp	x8, _PHY_TRANSMIT_POWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_TRANSMIT_POWER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_tdme_settxpower
LBB0_8:
Lloh8:
	adrp	x8, _SPI_MLME_SET_REQUEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_MLME_SET_REQUEST@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh11:
	adrp	x8, _MAX_ATTRIBUTE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_ATTRIBUTE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	sub	w24, w21, w8
	add	w8, w24, #4
	str	w8, [sp, #64]
	stp	x22, x23, [sp, #96]
	str	x21, [sp, #88]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	add	w1, w24, #6
	add	x0, sp, #56
	mov	x2, sp
	mov	x3, x19
	bl	_cascoda_api_downstream
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	x8, [sp]
Lloh14:
	adrp	x9, _SPI_MLME_SET_CONFIRM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPI_MLME_SET_CONFIRM@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [sp, #16]
	b	LBB0_3
LBB0_11:
Lloh17:
	adrp	x8, _MAC_SYSTEM_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAC_SYSTEM_ERROR@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_INVALID_PARAMETER,8,3      ; @MAC_INVALID_PARAMETER
	.comm	_PHY_CURRENT_CHANNEL,8,3        ; @PHY_CURRENT_CHANNEL
	.comm	_PHY_TRANSMIT_POWER,8,3         ; @PHY_TRANSMIT_POWER
	.comm	_SPI_MLME_SET_REQUEST,8,3       ; @SPI_MLME_SET_REQUEST
	.comm	_MAX_ATTRIBUTE_SIZE,4,2         ; @MAX_ATTRIBUTE_SIZE
	.comm	_MAC_SYSTEM_ERROR,8,3           ; @MAC_SYSTEM_ERROR
	.comm	_SPI_MLME_SET_CONFIRM,8,3       ; @SPI_MLME_SET_CONFIRM
	.no_dead_strip	_mlme_set_request_sync
.subsections_via_symbols
