	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_mon_1_svc                   ## -- Begin function sm_mon_1_svc
	.p2align	4, 0x90
_sm_mon_1_svc:                          ## @sm_mon_1_svc
	.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
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movl	20(%rdi), %esi
	movq	%rax, %rdi
	callq	_sm_check_hostname
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	20(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r14), %edi
	movl	16(%rbx), %edx
	movl	12(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_4:
	movq	_stat_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _sm_mon_1_svc.res(%rip)
	movq	_status_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, _sm_mon_1_svc.res+8(%rip)
	movl	20(%rbx), %edi
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_11
LBB0_1:
	movq	_stat_fail@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	-32(%rbp), %rdi
	callq	_freeaddrinfo
	movl	20(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_find_host
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r14
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movl	24(%rax), %edi
	movl	16(%rbx), %esi
	movq	_SM_MAXSTRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movl	12(%rbx), %eax
	movl	%eax, 20(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 16(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	%r15, (%r14)
	xorl	%eax, %eax
	callq	_sync_file
	movq	_stat_succ@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, _sm_mon_1_svc.res(%rip)
LBB0_11:
	leaq	_sm_mon_1_svc.res(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_sm_mon_1_svc.res,16,3 ## @sm_mon_1_svc.res
	.comm	_stat_fail,8,3                  ## @stat_fail
	.comm	_debug,8,3                      ## @debug
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"monitor request for host %s"

L_.str.1:                               ## @.str.1
	.asciz	"recall host: %s prog: %d ver: %d proc: %d"

	.comm	_status_info,8,3                ## @status_info
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"Invalid hostname to sm_mon: %s"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.3:                               ## @.str.3
	.asciz	"Out of memory"

	.comm	_SM_MAXSTRLEN,4,2               ## @SM_MAXSTRLEN
	.comm	_stat_succ,8,3                  ## @stat_succ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_mon_1_svc                   ; -- Begin function sm_mon_1_svc
	.p2align	2
_sm_mon_1_svc:                          ; @sm_mon_1_svc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, x1
	mov	x19, x0
	ldr	w1, [x0, #20]
	mov	x0, x8
	bl	_sm_check_hostname
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x20, _LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LOG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w8, [x19, #20]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	ldr	w0, [x20]
	ldp	w9, w8, [x19, #12]
	ldp	w11, w10, [x19, #4]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
LBB0_3:
Lloh9:
	adrp	x8, _stat_fail@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stat_fail@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _sm_mon_1_svc.res@PAGE
Lloh13:
	add	x9, x9, _sm_mon_1_svc.res@PAGEOFF
	str	x8, [x9]
Lloh14:
	adrp	x8, _status_info@GOTPAGE
Lloh15:
	ldr	x8, [x8, _status_info@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x9, #8]
	ldr	w0, [x19, #20]
	add	x3, sp, #40
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w8, [x19, #20]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
	b	LBB0_10
LBB0_5:
Lloh22:
	adrp	x8, _stat_fail@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stat_fail@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
	ldr	w0, [x19, #20]
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_find_host
	cbz	x0, LBB0_10
; %bb.7:
	mov	x20, x0
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x21, x0
	ldr	w0, [x0, #24]
	ldr	w1, [x19, #16]
Lloh27:
	adrp	x8, _SM_MAXSTRLEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SM_MAXSTRLEN@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_strncpy
	ldr	w8, [x19, #12]
	str	w8, [x21, #20]
	ldur	d0, [x19, #4]
	stur	d0, [x21, #12]
	ldr	w0, [x21, #8]
	ldr	w1, [x19]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20]
	str	x8, [x21]
	str	x21, [x20]
	bl	_sync_file
Lloh30:
	adrp	x8, _stat_succ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stat_succ@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	adrp	x9, _sm_mon_1_svc.res@PAGE
	str	x8, [x9, _sm_mon_1_svc.res@PAGEOFF]
LBB0_10:
Lloh32:
	adrp	x0, _sm_mon_1_svc.res@PAGE
Lloh33:
	add	x0, x0, _sm_mon_1_svc.res@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh34:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_syslog
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_sm_mon_1_svc.res,16,3 ; @sm_mon_1_svc.res
	.comm	_stat_fail,8,3                  ; @stat_fail
	.comm	_debug,8,3                      ; @debug
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"monitor request for host %s"

l_.str.1:                               ; @.str.1
	.asciz	"recall host: %s prog: %d ver: %d proc: %d"

	.comm	_status_info,8,3                ; @status_info
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"Invalid hostname to sm_mon: %s"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.3:                               ; @.str.3
	.asciz	"Out of memory"

	.comm	_SM_MAXSTRLEN,4,2               ; @SM_MAXSTRLEN
	.comm	_stat_succ,8,3                  ; @stat_succ
.subsections_via_symbols
