	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_get_channel
_lbs_get_channel:                       ## @lbs_get_channel
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, %edi
	callq	_cpu_to_le16
	movq	%rax, -24(%rbp)
	movq	_CMD_OPT_802_11_RF_CHANNEL_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movq	_CMD_802_11_RF_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_lbs_cmd_with_response
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-40(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_lbs_deb_cmd
LBB0_2:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_OPT_802_11_RF_CHANNEL_GET,4,2 ## @CMD_OPT_802_11_RF_CHANNEL_GET
	.comm	_CMD_802_11_RF_CHANNEL,4,2      ## @CMD_802_11_RF_CHANNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current radio channel is %d\n"

	.no_dead_strip	_lbs_get_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_get_channel
_lbs_get_channel:                       ; @lbs_get_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w0, #24
	bl	_cpu_to_le16
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _CMD_OPT_802_11_RF_CHANNEL_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_OPT_802_11_RF_CHANNEL_GET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
Lloh3:
	adrp	x8, _CMD_802_11_RF_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_802_11_RF_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_lbs_cmd_with_response
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_lbs_deb_cmd
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_OPT_802_11_RF_CHANNEL_GET,4,2 ; @CMD_OPT_802_11_RF_CHANNEL_GET
	.comm	_CMD_802_11_RF_CHANNEL,4,2      ; @CMD_802_11_RF_CHANNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current radio channel is %d\n"

	.no_dead_strip	_lbs_get_channel
.subsections_via_symbols
