	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_amq_service             ## -- Begin function create_amq_service
	.p2align	4, 0x90
_create_amq_service:                    ## @create_amq_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movq	%r8, %r12
	movq	%rcx, %rbx
	movl	16(%rbp), %r13d
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.5:
	leaq	16(%rbp), %rsi
	movl	%eax, %edi
	callq	_bind_resv_port
	testq	%rax, %rax
	js	LBB0_6
LBB0_7:
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:
	movl	(%rbx), %edi
	movq	_AMQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_svctcp_create
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	testq	%r15, %r15
	je	LBB0_11
## %bb.12:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	cmpl	$0, 16(%rbp)
	jle	LBB0_17
## %bb.15:
	leaq	16(%rbp), %rsi
	movl	%eax, %edi
	callq	_bind_resv_port
	testq	%rax, %rax
	js	LBB0_16
LBB0_17:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_22
## %bb.18:
	movl	(%r15), %edi
	movq	_AMQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_svcudp_bufcreate
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_22
## %bb.19:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_2:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_13:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_plog
	jmp	LBB0_21
LBB0_6:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_20
LBB0_9:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
LBB0_20:
	xorl	%eax, %eax
	callq	_plog
LBB0_21:
	movl	$1, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_XLOG_FATAL,4,2                 ## @XLOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create tcp socket for amq service: %m"

L_.str.1:                               ## @.str.1
	.asciz	"can't bind amq service to requested TCP port %d: %m)"

	.comm	_AMQ_SIZE,4,2                   ## @AMQ_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"cannot create tcp service for amq: soAMQp=%d"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.3:                               ## @.str.3
	.asciz	"cannot create udp socket for amq service: %m"

L_.str.4:                               ## @.str.4
	.asciz	"can't bind amq service to requested UDP port %d: %m)"

L_.str.5:                               ## @.str.5
	.asciz	"cannot create udp service for amq: soAMQp=%d"

	.comm	_RPC_MAXDATASIZE,4,2            ## @RPC_MAXDATASIZE
	.comm	_SVCSET_CONNMAXREC,4,2          ## @SVCSET_CONNMAXREC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_amq_service             ; -- Begin function create_amq_service
	.p2align	2
_create_amq_service:                    ; @create_amq_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	str	w6, [sp, #12]
Lloh0:
	adrp	x24, _AF_INET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AF_INET@GOTPAGEOFF]
	cbz	x3, LBB0_6
; %bb.1:
	mov	x23, x6
	mov	x22, x4
	mov	x21, x3
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x21]
	tbnz	w0, #31, LBB0_13
; %bb.2:
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.3:
	add	x1, sp, #12
	bl	_bind_resv_port
	tbnz	x0, #63, LBB0_15
LBB0_4:
	cbz	x22, LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _AMQ_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AMQ_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x1
	bl	_svctcp_create
	str	x0, [x22]
	cbz	x0, LBB0_16
LBB0_6:
	cbz	x19, LBB0_12
; %bb.7:
	ldr	w0, [x24]
Lloh8:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_14
; %bb.8:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.9:
	add	x1, sp, #12
	bl	_bind_resv_port
	tbnz	x0, #63, LBB0_17
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _AMQ_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AMQ_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x1
	bl	_svcudp_bufcreate
	str	x0, [x20]
	cbz	x0, LBB0_18
LBB0_12:
	mov	w0, #0
	b	LBB0_20
LBB0_13:
Lloh14:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_14:
Lloh19:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_15:
Lloh24:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh29:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh39:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_19:
	bl	_plog
	mov	w0, #1
LBB0_20:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_XLOG_FATAL,4,2                 ; @XLOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create tcp socket for amq service: %m"

l_.str.1:                               ; @.str.1
	.asciz	"can't bind amq service to requested TCP port %d: %m)"

	.comm	_AMQ_SIZE,4,2                   ; @AMQ_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"cannot create tcp service for amq: soAMQp=%d"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.3:                               ; @.str.3
	.asciz	"cannot create udp socket for amq service: %m"

l_.str.4:                               ; @.str.4
	.asciz	"can't bind amq service to requested UDP port %d: %m)"

l_.str.5:                               ; @.str.5
	.asciz	"cannot create udp service for amq: soAMQp=%d"

	.comm	_RPC_MAXDATASIZE,4,2            ; @RPC_MAXDATASIZE
	.comm	_SVCSET_CONNMAXREC,4,2          ; @SVCSET_CONNMAXREC
.subsections_via_symbols
