	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_get_lcaddr                 ## -- Begin function sdp_get_lcaddr
	.p2align	4, 0x90
_sdp_get_lcaddr:                        ## @sdp_get_lcaddr
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_SDP_SESSION_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rcx
LBB0_8:
	movq	%rcx, 8(%rbx)
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$4, -28(%rbp)
	movl	16(%rbx), %edi
	leaq	-24(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_getsockname
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bdaddr_copy
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_SESSION_LOCAL,4,2          ## @SDP_SESSION_LOCAL
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_get_lcaddr                 ; -- Begin function sdp_get_lcaddr
	.p2align	2
_sdp_get_lcaddr:                        ; @sdp_get_lcaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDP_SESSION_LOCAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDP_SESSION_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
LBB0_5:
	str	x8, [x19, #8]
	cmp	x8, #0
	csetm	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	mov	w8, #4
	str	w8, [sp, #4]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getsockname
	cbz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	add	x1, sp, #8
	mov	x0, x20
	bl	_bdaddr_copy
	mov	x8, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_SESSION_LOCAL,4,2          ; @SDP_SESSION_LOCAL
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
