	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devsend                     ## -- Begin function bt_devsend
	.p2align	4, 0x90
_bt_devsend:                            ## @bt_devsend
	.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	$56, %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, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_4
LBB0_2:
	testq	%r14, %r14
	setne	%al
	testq	%r15, %r15
	sete	%cl
	testb	%al, %cl
	jne	LBB0_4
## %bb.3:
	movq	_UINT8_MAX@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jb	LBB0_4
## %bb.5:
	leaq	-96(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$16, -80(%rbp)
	movq	_NG_HCI_CMD_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	%esi, %edi
	callq	_htole16
	movl	%eax, -88(%rbp)
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	movq	%r15, -56(%rbp)
	movl	%r14d, -64(%rbp)
	movl	$2, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %ebx
LBB0_8:
	movq	%r14, -96(%rbp)
	leaq	-80(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_writev
	testq	%rax, %rax
	jns	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
	jmp	LBB0_13
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT8_MAX,8,3                  ## @UINT8_MAX
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
	.comm	_NG_HCI_CMD_PKT,4,2             ## @NG_HCI_CMD_PKT
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devsend                     ; -- Begin function bt_devsend
	.p2align	2
_bt_devsend:                            ; @bt_devsend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	cbz	x2, LBB0_2
; %bb.1:
	cbz	x20, LBB0_6
LBB0_2:
	cmp	x20, #0
	ccmp	x21, #0, #0, ne
	b.eq	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _UINT8_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT8_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.lo	LBB0_6
; %bb.4:
	add	x8, sp, #8
	str	x8, [sp, #32]
	mov	w8, #16
	str	w8, [sp, #24]
Lloh6:
	adrp	x8, _NG_HCI_CMD_PKT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NG_HCI_CMD_PKT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	mov	x0, x1
	bl	_htole16
	str	w0, [sp, #16]
	cbz	x20, LBB0_10
; %bb.5:
	str	x21, [sp, #48]
	str	w20, [sp, #40]
	mov	w21, #2
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldr	x8, [sp, #56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	mov	w21, #1
LBB0_11:
	str	x20, [sp, #8]
Lloh18:
	adrp	x20, _errno@GOTPAGE
Lloh19:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh20:
	adrp	x22, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x22, [x22, _EAGAIN@GOTPAGEOFF]
Lloh22:
	adrp	x23, _EINTR@GOTPAGE
Lloh23:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x21
	bl	_writev
	tbz	x0, #63, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_12
	b	LBB0_7
LBB0_14:
	mov	w0, #0
	b	LBB0_8
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT8_MAX,8,3                  ; @UINT8_MAX
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
	.comm	_NG_HCI_CMD_PKT,4,2             ; @NG_HCI_CMD_PKT
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
