	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_stat_1_svc                  ## -- Begin function sm_stat_1_svc
	.p2align	4, 0x90
_sm_stat_1_svc:                         ## @sm_stat_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	%r14, %rdi
	callq	_sm_check_hostname
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_3:
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	callq	_svc_getrpccaller
	movq	(%rax), %rdi
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_from_addr
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_syslog
LBB0_6:
	movq	_stat_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _sm_stat_1_svc.res+8(%rip)
	jmp	LBB0_7
LBB0_4:
	movq	_stat_succ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _sm_stat_1_svc.res+8(%rip)
	movq	-24(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_7:
	movq	_status_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, _sm_stat_1_svc.res(%rip)
	leaq	_sm_stat_1_svc.res(%rip), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_sm_stat_1_svc.res,16,3 ## @sm_stat_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	"stat called for host %s"

	.comm	_stat_succ,8,3                  ## @stat_succ
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"invalid hostname to sm_stat from %s: %s"

	.comm	_status_info,8,3                ## @status_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_stat_1_svc                  ; -- Begin function sm_stat_1_svc
	.p2align	2
_sm_stat_1_svc:                         ; @sm_stat_1_svc
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	mov	x0, x20
	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	x8, _LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_3:
	ldr	w0, [x19]
	add	x3, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x20]
	bl	_svc_getrpccaller
	ldr	x0, [x0]
Lloh8:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	bl	_from_addr
	mov	x2, x0
	ldr	w8, [x19]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syslog
LBB0_5:
Lloh13:
	adrp	x8, _stat_fail@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stat_fail@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	adrp	x9, _sm_stat_1_svc.res@PAGE+8
	str	x8, [x9, _sm_stat_1_svc.res@PAGEOFF+8]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _stat_succ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stat_succ@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	adrp	x9, _sm_stat_1_svc.res@PAGE+8
	str	x8, [x9, _sm_stat_1_svc.res@PAGEOFF+8]
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
LBB0_7:
Lloh19:
	adrp	x8, _status_info@GOTPAGE
Lloh20:
	ldr	x8, [x8, _status_info@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh22:
	adrp	x0, _sm_stat_1_svc.res@PAGE
Lloh23:
	add	x0, x0, _sm_stat_1_svc.res@PAGEOFF
	str	w8, [x0]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_sm_stat_1_svc.res,16,3 ; @sm_stat_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	"stat called for host %s"

	.comm	_stat_succ,8,3                  ; @stat_succ
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"invalid hostname to sm_stat from %s: %s"

	.comm	_status_info,8,3                ; @status_info
.subsections_via_symbols
