	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbtf_set_mode                  ## -- Begin function lbtf_set_mode
	.p2align	4, 0x90
_lbtf_set_mode:                         ## @lbtf_set_mode
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_LBTF_DEB_WEXT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_lbtf_deb_enter
	movl	$16, %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_lbtf_deb_wext
	movq	_CMD_802_11_SET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	$16, %ecx
	callq	_lbtf_cmd_async
	movl	(%r15), %edi
	callq	_lbtf_deb_leave
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_WEXT,4,2              ## @LBTF_DEB_WEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switching to mode: 0x%x\n"

	.comm	_CMD_802_11_SET_MODE,4,2        ## @CMD_802_11_SET_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbtf_set_mode                  ; -- Begin function lbtf_set_mode
	.p2align	2
_lbtf_set_mode:                         ; @lbtf_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _LBTF_DEB_WEXT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LBTF_DEB_WEXT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_lbtf_deb_enter
	mov	w0, #16
	bl	_cpu_to_le16
	str	x0, [sp]
	mov	x0, x19
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_lbtf_deb_wext
Lloh4:
	adrp	x8, _CMD_802_11_SET_MODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CMD_802_11_SET_MODE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	mov	w3, #16
	bl	_lbtf_cmd_async
	ldr	w0, [x21]
	bl	_lbtf_deb_leave
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_WEXT,4,2              ; @LBTF_DEB_WEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switching to mode: 0x%x\n"

	.comm	_CMD_802_11_SET_MODE,4,2        ; @CMD_802_11_SET_MODE
.subsections_via_symbols
