	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_monitor_mode           ## -- Begin function lbs_set_monitor_mode
	.p2align	4, 0x90
_lbs_set_monitor_mode:                  ## @lbs_set_monitor_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, %edi
	callq	_cpu_to_le16
	movq	%rax, -24(%rbp)
	movq	_CMD_ACT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_lbs_deb_cmd
	movq	_CMD_802_11_MONITOR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lbs_cmd_with_response
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.5:
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_ARPHRD_IEEE80211_RADIOTAP@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	movl	%ecx, (%rdx)
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ACT_SET,4,2                ## @CMD_ACT_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET_MONITOR_MODE: %d\n"

	.comm	_CMD_802_11_MONITOR_MODE,4,2    ## @CMD_802_11_MONITOR_MODE
	.comm	_ARPHRD_IEEE80211_RADIOTAP,4,2  ## @ARPHRD_IEEE80211_RADIOTAP
	.comm	_ARPHRD_ETHER,4,2               ## @ARPHRD_ETHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_monitor_mode           ; -- Begin function lbs_set_monitor_mode
	.p2align	2
_lbs_set_monitor_mode:                  ; @lbs_set_monitor_mode
	.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	x20, x1
	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_ACT_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ACT_SET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	cbz	w20, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_cpu_to_le16
	str	x0, [sp, #8]
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_lbs_deb_cmd
Lloh5:
	adrp	x8, _CMD_802_11_MONITOR_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_802_11_MONITOR_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_lbs_cmd_with_response
	cbnz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ARPHRD_IEEE80211_RADIOTAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARPHRD_IEEE80211_RADIOTAP@GOTPAGEOFF]
Lloh10:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ACT_SET,4,2                ; @CMD_ACT_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET_MONITOR_MODE: %d\n"

	.comm	_CMD_802_11_MONITOR_MODE,4,2    ; @CMD_802_11_MONITOR_MODE
	.comm	_ARPHRD_IEEE80211_RADIOTAP,4,2  ; @ARPHRD_IEEE80211_RADIOTAP
	.comm	_ARPHRD_ETHER,4,2               ; @ARPHRD_ETHER
.subsections_via_symbols
