	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_read_node_flags
_l2cap_read_node_flags:                 ## @l2cap_read_node_flags
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_SIOC_L2CAP_NODE_GET_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_stdout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %edi
	movq	_NG_L2CAP_CLT_SDP_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-32(%rbp), %eax
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdx
	cmoveq	%r15, %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %edi
	movq	_NG_L2CAP_CLT_RFCOMM_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-32(%rbp), %eax
	movq	%rbx, %rdx
	cmoveq	%r15, %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %edi
	movq	_NG_L2CAP_CLT_TCP_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-32(%rbp), %eax
	cmoveq	%r15, %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOC_L2CAP_NODE_GET_FLAGS,4,2  ## @SIOC_L2CAP_NODE_GET_FLAGS
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Connectionless traffic flags:\n"

L_.str.1:                               ## @.str.1
	.asciz	"\tSDP: %s\n"

	.comm	_NG_L2CAP_CLT_SDP_DISABLED,4,2  ## @NG_L2CAP_CLT_SDP_DISABLED
L_.str.2:                               ## @.str.2
	.asciz	"disabled"

L_.str.3:                               ## @.str.3
	.asciz	"enabled"

L_.str.4:                               ## @.str.4
	.asciz	"\tRFCOMM: %s\n"

	.comm	_NG_L2CAP_CLT_RFCOMM_DISABLED,4,2 ## @NG_L2CAP_CLT_RFCOMM_DISABLED
L_.str.5:                               ## @.str.5
	.asciz	"\tTCP: %s\n"

	.comm	_NG_L2CAP_CLT_TCP_DISABLED,4,2  ## @NG_L2CAP_CLT_TCP_DISABLED
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_l2cap_read_node_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_read_node_flags
_l2cap_read_node_flags:                 ; @l2cap_read_node_flags
	.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, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _SIOC_L2CAP_NODE_GET_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOC_L2CAP_NODE_GET_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _stdout@GOTPAGE
Lloh4:
	ldr	x19, [x19, _stdout@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	ldr	w8, [sp, #8]
Lloh7:
	adrp	x9, _NG_L2CAP_CLT_SDP_DISABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NG_L2CAP_CLT_SDP_DISABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
	tst	w9, w8
	csel	x8, x21, x20, eq
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	ldr	w8, [sp, #8]
Lloh16:
	adrp	x9, _NG_L2CAP_CLT_RFCOMM_DISABLED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NG_L2CAP_CLT_RFCOMM_DISABLED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x21, x20, eq
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	ldr	w8, [sp, #8]
Lloh21:
	adrp	x9, _NG_L2CAP_CLT_TCP_DISABLED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NG_L2CAP_CLT_TCP_DISABLED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x21, x20, eq
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
Lloh26:
	adrp	x8, _OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOC_L2CAP_NODE_GET_FLAGS,4,2  ; @SIOC_L2CAP_NODE_GET_FLAGS
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Connectionless traffic flags:\n"

l_.str.1:                               ; @.str.1
	.asciz	"\tSDP: %s\n"

	.comm	_NG_L2CAP_CLT_SDP_DISABLED,4,2  ; @NG_L2CAP_CLT_SDP_DISABLED
l_.str.2:                               ; @.str.2
	.asciz	"disabled"

l_.str.3:                               ; @.str.3
	.asciz	"enabled"

l_.str.4:                               ; @.str.4
	.asciz	"\tRFCOMM: %s\n"

	.comm	_NG_L2CAP_CLT_RFCOMM_DISABLED,4,2 ; @NG_L2CAP_CLT_RFCOMM_DISABLED
l_.str.5:                               ; @.str.5
	.asciz	"\tTCP: %s\n"

	.comm	_NG_L2CAP_CLT_TCP_DISABLED,4,2  ; @NG_L2CAP_CLT_TCP_DISABLED
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_l2cap_read_node_flags
.subsections_via_symbols
