	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt_monitor_activate
_bt_monitor_activate:                   ## @bt_monitor_activate
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 88(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_PCAP_ERROR_RFMON_NOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_14
LBB0_2:
	movq	%rdi, %rbx
	movq	_PCAP_ERROR@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	(%rdi), %rax
	movq	_MAXIMUM_SNAPLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	cmpq	%rcx, %rax
	jle	LBB0_5
LBB0_4:
	movq	%rcx, (%rbx)
	movq	%rcx, %rax
LBB0_5:
	movq	_BT_CONTROL_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	addq	$4, %rax
	movq	%rax, 8(%rbx)
	movq	_DLT_BLUETOOTH_LINUX_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_bt_monitor_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_bt_monitor_inject@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_install_bpf_program@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_bt_monitor_setdirection@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	_pcap_getnonblock_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_pcap_setnonblock_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_bt_monitor_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_AF_BLUETOOTH@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTPROTO_HCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	8(%rbx), %rdi
	callq	_malloc
	movl	%eax, 36(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movq	_HCI_DEV_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_HCI_CHANNEL_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	16(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movl	$1, -36(%rbp)
	movq	16(%rbx), %rdi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_12
## %bb.15:
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_6:
	movl	32(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
	movl	(%r15), %r14d
	jmp	LBB0_14
LBB0_8:
	movl	32(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_13
LBB0_10:
	movl	32(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movl	32(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
LBB0_13:
	callq	_pcap_fmt_errmsg_for_errno
	movq	%rbx, %rdi
	callq	_pcap_cleanup_live_common
LBB0_14:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ## @PCAP_ERROR_RFMON_NOTSUP
	.comm	_MAXIMUM_SNAPLEN,8,3            ## @MAXIMUM_SNAPLEN
	.comm	_BT_CONTROL_SIZE,8,3            ## @BT_CONTROL_SIZE
	.comm	_DLT_BLUETOOTH_LINUX_MONITOR,4,2 ## @DLT_BLUETOOTH_LINUX_MONITOR
	.comm	_bt_monitor_read,4,2            ## @bt_monitor_read
	.comm	_bt_monitor_inject,4,2          ## @bt_monitor_inject
	.comm	_install_bpf_program,4,2        ## @install_bpf_program
	.comm	_bt_monitor_setdirection,4,2    ## @bt_monitor_setdirection
	.comm	_pcap_getnonblock_fd,4,2        ## @pcap_getnonblock_fd
	.comm	_pcap_setnonblock_fd,4,2        ## @pcap_setnonblock_fd
	.comm	_bt_monitor_stats,4,2           ## @bt_monitor_stats
	.comm	_AF_BLUETOOTH,4,2               ## @AF_BLUETOOTH
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_BTPROTO_HCI,4,2                ## @BTPROTO_HCI
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't create raw socket"

L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate dump buffer"

	.comm	_HCI_DEV_NONE,4,2               ## @HCI_DEV_NONE
	.comm	_HCI_CHANNEL_MONITOR,4,2        ## @HCI_CHANNEL_MONITOR
L_.str.2:                               ## @.str.2
	.asciz	"Can't attach to interface"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_TIMESTAMP,4,2               ## @SO_TIMESTAMP
L_.str.3:                               ## @.str.3
	.asciz	"Can't enable time stamp"

	.no_dead_strip	_bt_monitor_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt_monitor_activate
_bt_monitor_activate:                   ; @bt_monitor_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #88]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCAP_ERROR_RFMON_NOTSUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERROR_RFMON_NOTSUP@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_14
LBB0_2:
	mov	x20, x0
Lloh3:
	adrp	x21, _PCAP_ERROR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCAP_ERROR@GOTPAGEOFF]
	ldr	w19, [x21]
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _MAXIMUM_SNAPLEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAXIMUM_SNAPLEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #1
	ccmp	x8, x9, #0, ge
	b.le	LBB0_4
; %bb.3:
	str	x9, [x20]
	mov	x8, x9
LBB0_4:
Lloh8:
	adrp	x9, _BT_CONTROL_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BT_CONTROL_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x9, x8
	add	x8, x8, #4
	str	x8, [x20, #8]
Lloh11:
	adrp	x8, _DLT_BLUETOOTH_LINUX_MONITOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DLT_BLUETOOTH_LINUX_MONITOR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #80]
Lloh14:
	adrp	x8, _bt_monitor_read@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bt_monitor_read@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _bt_monitor_inject@GOTPAGE
Lloh18:
	ldr	x9, [x9, _bt_monitor_inject@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #72]
Lloh20:
	adrp	x8, _install_bpf_program@GOTPAGE
Lloh21:
	ldr	x8, [x8, _install_bpf_program@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _bt_monitor_setdirection@GOTPAGE
Lloh24:
	ldr	x9, [x9, _bt_monitor_setdirection@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #64]
	str	xzr, [x20, #56]
Lloh26:
	adrp	x8, _pcap_getnonblock_fd@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pcap_getnonblock_fd@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh29:
	adrp	x8, _pcap_setnonblock_fd@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pcap_setnonblock_fd@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _bt_monitor_stats@GOTPAGE
Lloh33:
	ldr	x9, [x9, _bt_monitor_stats@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh35:
	adrp	x22, _AF_BLUETOOTH@GOTPAGE
Lloh36:
	ldr	x22, [x22, _AF_BLUETOOTH@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh37:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _BTPROTO_HCI@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BTPROTO_HCI@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_socket
	str	x0, [x20, #16]
	tbnz	x0, #63, LBB0_9
; %bb.5:
	ldr	x0, [x20, #8]
	bl	_malloc
	str	w0, [x20, #36]
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w8, [x22]
	str	w8, [sp, #24]
Lloh43:
	adrp	x8, _HCI_DEV_NONE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HCI_DEV_NONE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _HCI_CHANNEL_MONITOR@GOTPAGE
Lloh47:
	ldr	x9, [x9, _HCI_CHANNEL_MONITOR@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	ldr	x0, [x20, #16]
	add	x1, sp, #16
	mov	w2, #12
	bl	_bind
	tbnz	x0, #63, LBB0_11
; %bb.7:
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	x0, [x20, #16]
Lloh49:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _SO_TIMESTAMP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SO_TIMESTAMP@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_12
; %bb.8:
	mov	w19, #0
	ldr	x8, [x20, #16]
	str	x8, [x20, #24]
	b	LBB0_14
LBB0_9:
	ldr	w0, [x20, #32]
Lloh55:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x8, _errno@GOTPAGE
Lloh59:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
Lloh61:
	adrp	x3, l_.str@PAGE
Lloh62:
	add	x3, x3, l_.str@PAGEOFF
	bl	_pcap_fmt_errmsg_for_errno
	ldr	w19, [x21]
	b	LBB0_14
LBB0_10:
	ldr	w0, [x20, #32]
Lloh63:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _errno@GOTPAGE
Lloh67:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
Lloh69:
	adrp	x3, l_.str.1@PAGE
Lloh70:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	w0, [x20, #32]
Lloh71:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
Lloh74:
	adrp	x8, _errno@GOTPAGE
Lloh75:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
Lloh77:
	adrp	x3, l_.str.2@PAGE
Lloh78:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w0, [x20, #32]
Lloh79:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x8, _errno@GOTPAGE
Lloh83:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
Lloh85:
	adrp	x3, l_.str.3@PAGE
Lloh86:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_13:
	bl	_pcap_fmt_errmsg_for_errno
	mov	x0, x20
	bl	_pcap_cleanup_live_common
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ; @PCAP_ERROR_RFMON_NOTSUP
	.comm	_MAXIMUM_SNAPLEN,8,3            ; @MAXIMUM_SNAPLEN
	.comm	_BT_CONTROL_SIZE,8,3            ; @BT_CONTROL_SIZE
	.comm	_DLT_BLUETOOTH_LINUX_MONITOR,4,2 ; @DLT_BLUETOOTH_LINUX_MONITOR
	.comm	_bt_monitor_read,4,2            ; @bt_monitor_read
	.comm	_bt_monitor_inject,4,2          ; @bt_monitor_inject
	.comm	_install_bpf_program,4,2        ; @install_bpf_program
	.comm	_bt_monitor_setdirection,4,2    ; @bt_monitor_setdirection
	.comm	_pcap_getnonblock_fd,4,2        ; @pcap_getnonblock_fd
	.comm	_pcap_setnonblock_fd,4,2        ; @pcap_setnonblock_fd
	.comm	_bt_monitor_stats,4,2           ; @bt_monitor_stats
	.comm	_AF_BLUETOOTH,4,2               ; @AF_BLUETOOTH
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_BTPROTO_HCI,4,2                ; @BTPROTO_HCI
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't create raw socket"

l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate dump buffer"

	.comm	_HCI_DEV_NONE,4,2               ; @HCI_DEV_NONE
	.comm	_HCI_CHANNEL_MONITOR,4,2        ; @HCI_CHANNEL_MONITOR
l_.str.2:                               ; @.str.2
	.asciz	"Can't attach to interface"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_TIMESTAMP,4,2               ; @SO_TIMESTAMP
l_.str.3:                               ; @.str.3
	.asciz	"Can't enable time stamp"

	.no_dead_strip	_bt_monitor_activate
.subsections_via_symbols
