	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_unregister_service         ## -- Begin function sdp_unregister_service
	.p2align	4, 0x90
_sdp_unregister_service:                ## @sdp_unregister_service
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	_SDP_SESSION_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.4:
	movq	_SDP_LOCAL_MTU@GOTPCREL(%rip), %rax
	cmpl	$27, (%rax)
	ja	LBB0_6
## %bb.5:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_12
LBB0_6:
	movl	%esi, %r15d
	movq	_SDP_PDU_SERVICE_UNREGISTER_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movl	4(%rbx), %edi
	incl	%edi
	movl	%edi, 4(%rbx)
	callq	_htons
	movq	%rax, -104(%rbp)
	movl	$4, %edi
	callq	_htons
	movq	%rax, -112(%rbp)
	movl	%r15d, %edi
	callq	_htonl
	movl	%eax, -84(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$24, -80(%rbp)
	leaq	-84(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$4, -64(%rbp)
	leaq	-80(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_writev
	movq	(%r12), %rcx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	(%r13), %rcx
	je	LBB0_7
LBB0_9:
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_sdp_receive_error_pdu
	movq	%rax, %r14
	sarq	$63, %r14
	jmp	LBB0_12
LBB0_10:
	movq	%rcx, 8(%rbx)
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_SESSION_LOCAL,4,2          ## @SDP_SESSION_LOCAL
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_SDP_LOCAL_MTU,4,2              ## @SDP_LOCAL_MTU
	.comm	_EMSGSIZE,8,3                   ## @EMSGSIZE
	.comm	_SDP_PDU_SERVICE_UNREGISTER_REQUEST,4,2 ## @SDP_PDU_SERVICE_UNREGISTER_REQUEST
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_unregister_service         ; -- Begin function sdp_unregister_service
	.p2align	2
_sdp_unregister_service:                ; @sdp_unregister_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _SDP_SESSION_LOCAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDP_SESSION_LOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _SDP_LOCAL_MTU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDP_LOCAL_MTU@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #27
	b.hi	LBB0_10
; %bb.3:
Lloh9:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
LBB0_6:
	str	x8, [x19, #8]
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.9:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #128
	ret
LBB0_10:
	mov	x20, x1
Lloh16:
	adrp	x8, _SDP_PDU_SERVICE_UNREGISTER_REQUEST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDP_PDU_SERVICE_UNREGISTER_REQUEST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w8, [x19, #4]
	add	w0, w8, #1
	str	w0, [x19, #4]
	bl	_htons
	str	x0, [sp, #16]
	mov	w21, #4
	mov	w0, #4
	bl	_htons
	str	x0, [sp, #8]
	mov	x0, x20
	bl	_htonl
	add	x8, sp, #8
	str	x8, [sp, #48]
	mov	w8, #24
	stp	w0, w8, [sp, #36]
	add	x8, sp, #36
	str	x8, [sp, #64]
	str	w21, [sp, #56]
Lloh19:
	adrp	x20, _errno@GOTPAGE
Lloh20:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh21:
	adrp	x21, _EINTR@GOTPAGE
Lloh22:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	add	x1, sp, #40
	mov	w2, #2
	bl	_writev
	ldr	x8, [x20]
	tbz	w0, #31, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_13:
	tbnz	w0, #31, LBB0_6
; %bb.14:
	mov	x0, x19
	bl	_sdp_receive_error_pdu
	asr	x0, x0, #63
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_SESSION_LOCAL,4,2          ; @SDP_SESSION_LOCAL
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_SDP_LOCAL_MTU,4,2              ; @SDP_LOCAL_MTU
	.comm	_EMSGSIZE,8,3                   ; @EMSGSIZE
	.comm	_SDP_PDU_SERVICE_UNREGISTER_REQUEST,4,2 ; @SDP_PDU_SERVICE_UNREGISTER_REQUEST
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
