	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_get_reg                    ## -- Begin function lbs_get_reg
	.p2align	4, 0x90
_lbs_get_reg:                           ## @lbs_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rcx, %rcx
	sete	%dil
	callq	_BUG_ON
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	$32, %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movq	_CMD_ACT_GET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	_CMD_MAC_REG_ACCESS@GOTPCREL(%rip), %rax
	movq	_CMD_BBP_REG_ACCESS@GOTPCREL(%rip), %r12
	movq	_CMD_RF_REG_ACCESS@GOTPCREL(%rip), %rcx
	cmpq	%r13, (%rax)
	je	LBB0_4
## %bb.1:
	cmpq	%r13, (%r12)
	je	LBB0_4
## %bb.2:
	cmpq	%r13, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_lbs_cmd_with_response
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	cmpq	%r13, (%r12)
	je	LBB0_7
## %bb.6:
	movq	_CMD_RF_REG_ACCESS@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%ebx, %ebx
	movq	_CMD_MAC_REG_ACCESS@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_10
## %bb.9:
	movl	-72(%rbp), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_7:
	movl	-68(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ACT_GET,8,3                ## @CMD_ACT_GET
	.comm	_CMD_MAC_REG_ACCESS,8,3         ## @CMD_MAC_REG_ACCESS
	.comm	_CMD_BBP_REG_ACCESS,8,3         ## @CMD_BBP_REG_ACCESS
	.comm	_CMD_RF_REG_ACCESS,8,3          ## @CMD_RF_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_get_reg                    ; -- Begin function lbs_get_reg
	.p2align	2
_lbs_get_reg:                           ; @lbs_get_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x3, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	w0, #32
	bl	_cpu_to_le16
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _CMD_ACT_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ACT_GET@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh3:
	adrp	x22, _CMD_MAC_REG_ACCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CMD_MAC_REG_ACCESS@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh5:
	adrp	x23, _CMD_BBP_REG_ACCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CMD_BBP_REG_ACCESS@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh7:
	adrp	x24, _CMD_RF_REG_ACCESS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CMD_RF_REG_ACCESS@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x8, x20
	ccmp	x9, x20, #4, ne
	ccmp	x10, x20, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_lbs_cmd_with_response
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x20
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	ldr	w8, [sp, #4]
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [sp]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
LBB0_7:
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ACT_GET,8,3                ; @CMD_ACT_GET
	.comm	_CMD_MAC_REG_ACCESS,8,3         ; @CMD_MAC_REG_ACCESS
	.comm	_CMD_BBP_REG_ACCESS,8,3         ; @CMD_BBP_REG_ACCESS
	.comm	_CMD_RF_REG_ACCESS,8,3          ; @CMD_RF_REG_ACCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
