	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_reg                    ## -- Begin function lbs_set_reg
	.p2align	4, 0x90
_lbs_set_reg:                           ## @lbs_set_reg
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movq	_CMD_ACT_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	_CMD_BBP_REG_ACCESS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CMD_RF_REG_ACCESS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_CMD_MAC_REG_ACCESS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.4:
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%eax, -72(%rbp)
	jmp	LBB0_5
LBB0_2:
	movzbl	%r15b, %eax
	movq	%rax, -64(%rbp)
LBB0_5:
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lbs_cmd_with_response
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ACT_SET,8,3                ## @CMD_ACT_SET
	.comm	_CMD_BBP_REG_ACCESS,8,3         ## @CMD_BBP_REG_ACCESS
	.comm	_CMD_RF_REG_ACCESS,8,3          ## @CMD_RF_REG_ACCESS
	.comm	_CMD_MAC_REG_ACCESS,8,3         ## @CMD_MAC_REG_ACCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_reg                    ; -- Begin function lbs_set_reg
	.p2align	2
_lbs_set_reg:                           ; @lbs_set_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	w0, #40
	bl	_cpu_to_le16
	str	x0, [sp, #40]
Lloh0:
	adrp	x8, _CMD_ACT_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ACT_SET@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [sp, #24]
Lloh3:
	adrp	x8, _CMD_BBP_REG_ACCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_BBP_REG_ACCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _CMD_RF_REG_ACCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_RF_REG_ACCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x19
	ccmp	x9, x19, #4, ne
	b.ne	LBB0_2
; %bb.1:
	and	w8, w21, #0xff
	str	x8, [sp, #16]
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _CMD_MAC_REG_ACCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_MAC_REG_ACCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [sp, #8]
LBB0_4:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_lbs_cmd_with_response
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ACT_SET,8,3                ; @CMD_ACT_SET
	.comm	_CMD_BBP_REG_ACCESS,8,3         ; @CMD_BBP_REG_ACCESS
	.comm	_CMD_RF_REG_ACCESS,8,3          ; @CMD_RF_REG_ACCESS
	.comm	_CMD_MAC_REG_ACCESS,8,3         ; @CMD_MAC_REG_ACCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
