	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_bind
_svc_bind:                              ## @svc_bind
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	cmpl	$8, %ebx
	jne	LBB0_1
## %bb.2:
	movq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_lock_sock
	movq	(%r14), %rax
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_4:
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_ATM_SD
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	_AF_ATMSVC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	_ATM_VF_BOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_ATM_VF_HASQOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	(%r13), %rax
	movq	%rax, 8(%r14)
	movq	_ATM_VF_WAITING@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movl	4(%r15), %edi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	_as_bind@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_sigd_enq
	movq	%r13, %r12
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movq	_sigd@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	cmpq	$0, (%r13)
	je	LBB0_15
## %bb.12:
	movq	_wait@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movl	4(%r15), %edi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_prepare_to_wait
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_13
LBB0_15:
	movl	4(%r15), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	movq	_ATM_VF_REGIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	cmpq	$0, (%r13)
	je	LBB0_16
## %bb.17:
	cmpl	$0, (%r15)
	movq	%r15, %rax
	jne	LBB0_19
## %bb.18:
	movq	_ATM_VF_BOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rax
	jmp	LBB0_19
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_7:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_9:
	movq	_EBADFD@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	_EUNATCH@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_release_sock
LBB0_20:
	negl	%ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SS_CONNECTED,8,3               ## @SS_CONNECTED
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_AF_ATMSVC,8,3                  ## @AF_ATMSVC
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_ATM_VF_BOUND,4,2               ## @ATM_VF_BOUND
	.comm	_ATM_VF_HASQOS,4,2              ## @ATM_VF_HASQOS
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_ATM_VF_WAITING,4,2             ## @ATM_VF_WAITING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_as_bind,4,2                    ## @as_bind
	.comm	_sigd,8,3                       ## @sigd
	.comm	_ATM_VF_REGIS,4,2               ## @ATM_VF_REGIS
	.comm	_EUNATCH,4,2                    ## @EUNATCH
	.no_dead_strip	_svc_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_bind
_svc_bind:                              ; @svc_bind
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	cmp	w19, #8
	b.ne	LBB0_3
; %bb.1:
	ldr	x19, [x20, #8]
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SS_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SS_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _EISCONN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_18
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_19
LBB0_4:
Lloh11:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.5:
	mov	x0, x20
	bl	_ATM_SD
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _AF_ATMSVC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AF_ATMSVC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.6:
	mov	x20, x0
Lloh17:
	adrp	x22, _ATM_VF_BOUND@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ATM_VF_BOUND@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
Lloh19:
	adrp	x8, _ATM_VF_HASQOS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATM_VF_HASQOS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_16
; %bb.7:
	ldr	x8, [x21]
	mov	x21, x20
	str	x8, [x21, #8]!
Lloh22:
	adrp	x23, _ATM_VF_WAITING@GOTPAGE
Lloh23:
	ldr	x23, [x23, _ATM_VF_WAITING@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_set_bit
	ldr	w0, [x19, #4]
Lloh24:
	adrp	x24, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh25:
	ldr	x24, [x24, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh26:
	adrp	x1, _wait@GOTPAGE
Lloh27:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_prepare_to_wait
Lloh28:
	adrp	x8, _as_bind@GOTPAGE
Lloh29:
	ldr	x8, [x8, _as_bind@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_sigd_enq
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
Lloh31:
	adrp	x25, _sigd@GOTPAGE
Lloh32:
	ldr	x25, [x25, _sigd@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x25]
	cbz	x8, LBB0_11
; %bb.9:
Lloh33:
	adrp	x21, _wait@GOTPAGE
Lloh34:
	ldr	x21, [x21, _wait@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	ldr	w0, [x19, #4]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_prepare_to_wait
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	ldr	x8, [x25]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_10
LBB0_11:
	ldr	w0, [x19, #4]
Lloh35:
	adrp	x1, _wait@GOTPAGE
Lloh36:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
Lloh37:
	adrp	x8, _ATM_VF_REGIS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ATM_VF_REGIS@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	ldr	x8, [x25]
	cbz	x8, LBB0_17
; %bb.12:
	ldr	w9, [x19]
	mov	x8, x19
	cbnz	w9, LBB0_18
; %bb.13:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
	mov	x8, x19
	b	LBB0_18
LBB0_14:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh42:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh44:
	adrp	x8, _EBADFD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh46:
	adrp	x8, _EUNATCH@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EUNATCH@GOTPAGEOFF]
LBB0_18:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_release_sock
LBB0_19:
	neg	w0, w20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SS_CONNECTED,8,3               ; @SS_CONNECTED
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_AF_ATMSVC,8,3                  ; @AF_ATMSVC
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_ATM_VF_BOUND,4,2               ; @ATM_VF_BOUND
	.comm	_ATM_VF_HASQOS,4,2              ; @ATM_VF_HASQOS
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_ATM_VF_WAITING,4,2             ; @ATM_VF_WAITING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_as_bind,4,2                    ; @as_bind
	.comm	_sigd,8,3                       ; @sigd
	.comm	_ATM_VF_REGIS,4,2               ; @ATM_VF_REGIS
	.comm	_EUNATCH,4,2                    ; @EUNATCH
	.no_dead_strip	_svc_bind
.subsections_via_symbols
