	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_init                    ## -- Begin function client_init
	.p2align	4, 0x90
_client_init:                           ## @client_init
	.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	_remote_bdaddr@GOTPCREL(%rip), %rdi
	callq	_bdaddr_any
	testq	%rax, %rax
	jne	LBB0_40
## %bb.1:
	movq	_service_name@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_client_query
LBB0_3:
	movq	_PF_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BLUETOOTH_PROTO_L2CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %r15d
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_AF_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$32, -88(%rbp)
	movq	_BDADDR_BREDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-84(%rbp), %r14
	movq	_local_bdaddr@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_bdaddr_copy
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_bind
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movq	_BNEP_MTU_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_SOL_L2CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_L2CAP_IMTU@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-52(%rbp), %rcx
	movl	%r15d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:
	movq	_service_class@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_remote_bdaddr@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_bt_ntoa
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_info
	movq	_l2cap_psm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htole16
	movl	%eax, -80(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bdaddr_copy
	leaq	-88(%rbp), %rsi
	movl	%r15d, %edi
	movl	$32, %edx
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.12:
	movl	$4, -48(%rbp)
	movq	_SOL_L2CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.14:
	movl	-52(%rbp), %esi
	movq	_BNEP_MTU_MIN@GOTPCREL(%rip), %r12
	cmpl	(%r12), %esi
	jl	LBB0_15
## %bb.18:
	movl	$4, -48(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.20:
	movl	-52(%rbp), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	cmpl	%eax, -44(%rbp)
	jge	LBB0_23
## %bb.21:
	movl	%eax, -44(%rbp)
	movl	(%r14), %esi
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	jne	LBB0_23
## %bb.22:
	movl	-44(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_info
LBB0_23:
	movl	$4, -48(%rbp)
	movq	_SOL_L2CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_L2CAP_OMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.25:
	movl	-56(%rbp), %esi
	cmpl	(%r12), %esi
	jl	LBB0_26
## %bb.27:
	movl	$4, -48(%rbp)
	movl	(%r14), %esi
	movq	_SO_SNDBUF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.29:
	movl	-56(%rbp), %eax
	leal	(%rax,%rax), %ecx
	cmpl	%ecx, -44(%rbp)
	jge	LBB0_32
## %bb.30:
	movl	%ecx, -44(%rbp)
	movl	(%r14), %esi
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	je	LBB0_34
## %bb.31:
	movl	-56(%rbp), %eax
LBB0_32:
	movl	%eax, -44(%rbp)
	movl	(%r14), %esi
	movq	_SO_SNDLOWAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	je	LBB0_33
## %bb.37:
	xorl	%eax, %eax
	callq	_channel_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.38:
	movq	%rax, %rbx
	movq	_bnep_send@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_bnep_recv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	16(%rbx), %edi
	movq	_remote_bdaddr@GOTPCREL(%rip), %rsi
	callq	_b2eaddr
	movl	12(%rbx), %edi
	movq	_local_bdaddr@GOTPCREL(%rip), %rsi
	callq	_b2eaddr
	movq	_CHANNEL_WAIT_CONNECT_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_channel_timeout
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_channel_open
	testl	%eax, %eax
	je	LBB0_17
## %bb.39:
	movq	_BNEP_SETUP_CONNECTION_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_service_class@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SDP_SERVICE_CLASS_PANU@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_bnep_send_control
	jmp	LBB0_40
LBB0_28:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_36
LBB0_33:
	movl	-44(%rbp), %esi
	leaq	L_.str.13(%rip), %rdi
	jmp	LBB0_35
LBB0_34:
	movl	-44(%rbp), %esi
	leaq	L_.str.12(%rip), %rdi
LBB0_35:
	xorl	%eax, %eax
	callq	_log_err
LBB0_36:
	movl	%r15d, %edi
	callq	_close
LBB0_40:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_9:
	movl	-52(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_5
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_16
LBB0_19:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_5
LBB0_24:
	leaq	L_.str.9(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_17
LBB0_26:
	leaq	L_.str.10(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_log_err
LBB0_17:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_bdaddr,4,2              ## @remote_bdaddr
	.comm	_service_name,8,3               ## @service_name
	.comm	_PF_BLUETOOTH,4,2               ## @PF_BLUETOOTH
	.comm	_SOCK_SEQPACKET,4,2             ## @SOCK_SEQPACKET
	.comm	_BLUETOOTH_PROTO_L2CAP,4,2      ## @BLUETOOTH_PROTO_L2CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open L2CAP socket: %m"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_AF_BLUETOOTH,4,2               ## @AF_BLUETOOTH
	.comm	_BDADDR_BREDR,4,2               ## @BDADDR_BREDR
	.comm	_local_bdaddr,4,2               ## @local_bdaddr
L_.str.1:                               ## @.str.1
	.asciz	"Could not bind client socket: %m"

	.comm	_BNEP_MTU_MIN,4,2               ## @BNEP_MTU_MIN
	.comm	_SOL_L2CAP,4,2                  ## @SOL_L2CAP
	.comm	_SO_L2CAP_IMTU,4,2              ## @SO_L2CAP_IMTU
L_.str.2:                               ## @.str.2
	.asciz	"Could not set L2CAP IMTU (%d): %m"

L_.str.3:                               ## @.str.3
	.asciz	"Opening connection to service 0x%4.4x at %s"

	.comm	_service_class,4,2              ## @service_class
	.comm	_l2cap_psm,4,2                  ## @l2cap_psm
L_.str.4:                               ## @.str.4
	.asciz	"Could not connect: %m"

L_.str.5:                               ## @.str.5
	.asciz	"Could not get IMTU: %m"

L_.str.6:                               ## @.str.6
	.asciz	"L2CAP IMTU too small (%d)"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
L_.str.7:                               ## @.str.7
	.asciz	"Could not read SO_RCVBUF"

L_.str.8:                               ## @.str.8
	.asciz	"Could not increase SO_RCVBUF (from %d)"

	.comm	_SO_L2CAP_OMTU,4,2              ## @SO_L2CAP_OMTU
L_.str.9:                               ## @.str.9
	.asciz	"Could not get L2CAP OMTU: %m"

L_.str.10:                              ## @.str.10
	.asciz	"L2CAP OMTU too small (%d)"

	.comm	_SO_SNDBUF,4,2                  ## @SO_SNDBUF
L_.str.11:                              ## @.str.11
	.asciz	"Could not get socket send buffer size: %m"

L_.str.12:                              ## @.str.12
	.asciz	"Could not set socket send buffer size (%d): %m"

	.comm	_SO_SNDLOWAT,4,2                ## @SO_SNDLOWAT
L_.str.13:                              ## @.str.13
	.asciz	"Could not set socket low water mark (%d): %m"

	.comm	_bnep_send,4,2                  ## @bnep_send
	.comm	_bnep_recv,4,2                  ## @bnep_recv
	.comm	_CHANNEL_WAIT_CONNECT_RSP,4,2   ## @CHANNEL_WAIT_CONNECT_RSP
	.comm	_BNEP_SETUP_CONNECTION_REQUEST,4,2 ## @BNEP_SETUP_CONNECTION_REQUEST
	.comm	_SDP_SERVICE_CLASS_PANU,4,2     ## @SDP_SERVICE_CLASS_PANU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_init                    ; -- Begin function client_init
	.p2align	2
_client_init:                           ; @client_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x0, _remote_bdaddr@GOTPAGE
Lloh1:
	ldr	x0, [x0, _remote_bdaddr@GOTPAGEOFF]
	bl	_bdaddr_any
	cbnz	x0, LBB0_27
; %bb.1:
Lloh2:
	adrp	x8, _service_name@GOTPAGE
Lloh3:
	ldr	x8, [x8, _service_name@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_client_query
LBB0_3:
Lloh5:
	adrp	x8, _PF_BLUETOOTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PF_BLUETOOTH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SOCK_SEQPACKET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _BLUETOOTH_PROTO_L2CAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BLUETOOTH_PROTO_L2CAP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.4:
	mov	x19, x0
	add	x20, sp, #32
	mov	w21, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh14:
	adrp	x8, _AF_BLUETOOTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AF_BLUETOOTH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _BDADDR_BREDR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BDADDR_BREDR@GOTPAGEOFF]
	str	w21, [sp, #32]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	str	xzr, [sp, #48]
	orr	x20, x20, #0x4
Lloh20:
	adrp	x1, _local_bdaddr@GOTPAGE
Lloh21:
	ldr	x1, [x1, _local_bdaddr@GOTPAGEOFF]
	mov	x0, x20
	bl	_bdaddr_copy
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #32
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_29
; %bb.5:
Lloh22:
	adrp	x24, _BNEP_MTU_MIN@GOTPAGE
Lloh23:
	ldr	x24, [x24, _BNEP_MTU_MIN@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #20]
Lloh24:
	adrp	x25, _SOL_L2CAP@GOTPAGE
Lloh25:
	ldr	x25, [x25, _SOL_L2CAP@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh26:
	adrp	x26, _SO_L2CAP_IMTU@GOTPAGE
Lloh27:
	ldr	x26, [x26, _SO_L2CAP_IMTU@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x3, sp, #20
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.6:
Lloh28:
	adrp	x23, _service_class@GOTPAGE
Lloh29:
	ldr	x23, [x23, _service_class@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh30:
	adrp	x22, _remote_bdaddr@GOTPAGE
Lloh31:
	ldr	x22, [x22, _remote_bdaddr@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, #0
	bl	_bt_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_log_info
Lloh34:
	adrp	x8, _l2cap_psm@GOTPAGE
Lloh35:
	ldr	x8, [x8, _l2cap_psm@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_htole16
	str	w0, [sp, #40]
	mov	x0, x20
	mov	x1, x22
	bl	_bdaddr_copy
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #32
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.7:
	mov	w8, #4
	str	w8, [sp, #28]
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x3, sp, #20
	add	x4, sp, #28
	mov	x0, x19
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_32
; %bb.8:
	ldr	w8, [sp, #20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.lt	LBB0_33
; %bb.9:
	mov	w8, #4
	str	w8, [sp, #28]
Lloh37:
	adrp	x20, _SOL_SOCKET@GOTPAGE
Lloh38:
	ldr	x20, [x20, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh39:
	adrp	x21, _SO_RCVBUF@GOTPAGE
Lloh40:
	ldr	x21, [x21, _SO_RCVBUF@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #24
	add	x4, sp, #28
	mov	x0, x19
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_34
; %bb.10:
	ldp	w8, w9, [sp, #20]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.11:
	str	w8, [sp, #24]
	ldr	w1, [x20]
	ldr	w2, [x21]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [sp, #24]
Lloh41:
	adrp	x0, l_.str.8@PAGE
Lloh42:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_log_info
LBB0_13:
	mov	w8, #4
	str	w8, [sp, #28]
	ldr	w1, [x25]
Lloh43:
	adrp	x8, _SO_L2CAP_OMTU@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SO_L2CAP_OMTU@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	add	x3, sp, #16
	add	x4, sp, #28
	mov	x0, x19
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_35
; %bb.14:
	ldr	w8, [sp, #16]
	ldr	w9, [x24]
	cmp	w8, w9
	b.lt	LBB0_36
; %bb.15:
	mov	w8, #4
	str	w8, [sp, #28]
	ldr	w1, [x20]
Lloh46:
	adrp	x21, _SO_SNDBUF@GOTPAGE
Lloh47:
	ldr	x21, [x21, _SO_SNDBUF@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #24
	add	x4, sp, #28
	mov	x0, x19
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.16:
	ldr	w10, [sp, #24]
	ldr	w8, [sp, #16]
	lsl	w9, w8, #1
	cmp	w10, w9
	b.ge	LBB0_19
; %bb.17:
	str	w9, [sp, #24]
	ldr	w1, [x20]
	ldr	w2, [x21]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.18:
	ldr	w8, [sp, #16]
LBB0_19:
	str	w8, [sp, #24]
	ldr	w1, [x20]
Lloh48:
	adrp	x8, _SO_SNDLOWAT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SO_SNDLOWAT@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.20:
	bl	_channel_alloc
	cbz	x0, LBB0_38
; %bb.21:
	mov	x20, x0
Lloh51:
	adrp	x8, _bnep_send@GOTPAGE
Lloh52:
	ldr	x8, [x8, _bnep_send@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _bnep_recv@GOTPAGE
Lloh55:
	ldr	x9, [x9, _bnep_recv@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #20]
	ldr	w8, [sp, #20]
	str	w8, [x0]
	ldr	w8, [sp, #16]
	str	w8, [x0, #4]
	ldr	w0, [x0, #16]
Lloh57:
	adrp	x1, _remote_bdaddr@GOTPAGE
Lloh58:
	ldr	x1, [x1, _remote_bdaddr@GOTPAGEOFF]
	bl	_b2eaddr
	ldr	w0, [x20, #12]
Lloh59:
	adrp	x1, _local_bdaddr@GOTPAGE
Lloh60:
	ldr	x1, [x1, _local_bdaddr@GOTPAGEOFF]
	bl	_b2eaddr
Lloh61:
	adrp	x8, _CHANNEL_WAIT_CONNECT_RSP@GOTPAGE
Lloh62:
	ldr	x8, [x8, _CHANNEL_WAIT_CONNECT_RSP@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	mov	w1, #10
	bl	_channel_timeout
	mov	x0, x20
	mov	x1, x19
	bl	_channel_open
	cbz	w0, LBB0_38
; %bb.22:
Lloh64:
	adrp	x8, _BNEP_SETUP_CONNECTION_REQUEST@GOTPAGE
Lloh65:
	ldr	x8, [x8, _BNEP_SETUP_CONNECTION_REQUEST@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	ldr	w3, [x23]
Lloh67:
	adrp	x8, _SDP_SERVICE_CLASS_PANU@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_PANU@GOTPAGEOFF]
Lloh69:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_bnep_send_control
	b	LBB0_27
LBB0_23:
Lloh70:
	adrp	x0, l_.str.11@PAGE
Lloh71:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_26
LBB0_24:
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh72:
	adrp	x0, l_.str.13@PAGE
Lloh73:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_26
LBB0_25:
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh74:
	adrp	x0, l_.str.12@PAGE
Lloh75:
	add	x0, x0, l_.str.12@PAGEOFF
LBB0_26:
	bl	_log_err
	mov	x0, x19
	bl	_close
LBB0_27:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_28:
Lloh76:
	adrp	x0, l_.str@PAGE
Lloh77:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_37
LBB0_29:
Lloh78:
	adrp	x0, l_.str.1@PAGE
Lloh79:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_37
LBB0_30:
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh80:
	adrp	x0, l_.str.2@PAGE
Lloh81:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_37
LBB0_31:
Lloh82:
	adrp	x0, l_.str.4@PAGE
Lloh83:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_37
LBB0_32:
Lloh84:
	adrp	x0, l_.str.5@PAGE
Lloh85:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_37
LBB0_33:
	str	x8, [sp]
Lloh86:
	adrp	x0, l_.str.6@PAGE
Lloh87:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_37
LBB0_34:
Lloh88:
	adrp	x0, l_.str.7@PAGE
Lloh89:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_37
LBB0_35:
Lloh90:
	adrp	x0, l_.str.9@PAGE
Lloh91:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_37
LBB0_36:
	str	x8, [sp]
Lloh92:
	adrp	x0, l_.str.10@PAGE
Lloh93:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_37:
	bl	_log_err
LBB0_38:
Lloh94:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_bdaddr,4,2              ; @remote_bdaddr
	.comm	_service_name,8,3               ; @service_name
	.comm	_PF_BLUETOOTH,4,2               ; @PF_BLUETOOTH
	.comm	_SOCK_SEQPACKET,4,2             ; @SOCK_SEQPACKET
	.comm	_BLUETOOTH_PROTO_L2CAP,4,2      ; @BLUETOOTH_PROTO_L2CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open L2CAP socket: %m"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_AF_BLUETOOTH,4,2               ; @AF_BLUETOOTH
	.comm	_BDADDR_BREDR,4,2               ; @BDADDR_BREDR
	.comm	_local_bdaddr,4,2               ; @local_bdaddr
l_.str.1:                               ; @.str.1
	.asciz	"Could not bind client socket: %m"

	.comm	_BNEP_MTU_MIN,4,2               ; @BNEP_MTU_MIN
	.comm	_SOL_L2CAP,4,2                  ; @SOL_L2CAP
	.comm	_SO_L2CAP_IMTU,4,2              ; @SO_L2CAP_IMTU
l_.str.2:                               ; @.str.2
	.asciz	"Could not set L2CAP IMTU (%d): %m"

l_.str.3:                               ; @.str.3
	.asciz	"Opening connection to service 0x%4.4x at %s"

	.comm	_service_class,4,2              ; @service_class
	.comm	_l2cap_psm,4,2                  ; @l2cap_psm
l_.str.4:                               ; @.str.4
	.asciz	"Could not connect: %m"

l_.str.5:                               ; @.str.5
	.asciz	"Could not get IMTU: %m"

l_.str.6:                               ; @.str.6
	.asciz	"L2CAP IMTU too small (%d)"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
l_.str.7:                               ; @.str.7
	.asciz	"Could not read SO_RCVBUF"

l_.str.8:                               ; @.str.8
	.asciz	"Could not increase SO_RCVBUF (from %d)"

	.comm	_SO_L2CAP_OMTU,4,2              ; @SO_L2CAP_OMTU
l_.str.9:                               ; @.str.9
	.asciz	"Could not get L2CAP OMTU: %m"

l_.str.10:                              ; @.str.10
	.asciz	"L2CAP OMTU too small (%d)"

	.comm	_SO_SNDBUF,4,2                  ; @SO_SNDBUF
l_.str.11:                              ; @.str.11
	.asciz	"Could not get socket send buffer size: %m"

l_.str.12:                              ; @.str.12
	.asciz	"Could not set socket send buffer size (%d): %m"

	.comm	_SO_SNDLOWAT,4,2                ; @SO_SNDLOWAT
l_.str.13:                              ; @.str.13
	.asciz	"Could not set socket low water mark (%d): %m"

	.comm	_bnep_send,4,2                  ; @bnep_send
	.comm	_bnep_recv,4,2                  ; @bnep_recv
	.comm	_CHANNEL_WAIT_CONNECT_RSP,4,2   ; @CHANNEL_WAIT_CONNECT_RSP
	.comm	_BNEP_SETUP_CONNECTION_REQUEST,4,2 ; @BNEP_SETUP_CONNECTION_REQUEST
	.comm	_SDP_SERVICE_CLASS_PANU,4,2     ; @SDP_SERVICE_CLASS_PANU
.subsections_via_symbols
