	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function monitor
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_monitor:                               ## @monitor
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_get_udev_fd
	movl	%eax, %ebx
	sarl	$31, %eax
	addl	$2, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SYS_HOSTNAME@GOTPCREL(%rip), %r14
	leaq	-224(%rbp), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	_failure_retry_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_failure_retry_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sleep
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r15d
	movl	%eax, -96(%rbp)
	leaq	-88(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	%ebx, -72(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	leaq	-96(%rbp), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$-1, %edx
	callq	_poll
	testl	%eax, %eax
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$128, %edx
	callq	_read_hostname
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, -224(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -88(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_syslog
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -64(%rbp)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_process_udev_event
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_set_rdma_node_desc
	movl	%eax, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	xorl	%r12d, %r12d
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	_close
	testl	%r12d, %r12d
	jne	LBB0_3
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_HOSTNAME,8,3               ## @SYS_HOSTNAME
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Open %s Failed: retry in %d seconds\n"

	.comm	_failure_retry_rate,4,2         ## @failure_retry_rate
	.comm	_POLLIN,8,3                     ## @POLLIN
L_.str.1:                               ## @.str.1
	.asciz	"Hostname change: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Poll %s Failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor
_monitor:                               ; @monitor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_get_udev_fd
	mov	x19, x0
	cmp	w0, #0
	mov	w8, #1
	cinc	w20, w8, ge
	add	x8, sp, #8
	add	x26, x8, #8
Lloh0:
	adrp	x27, _SYS_HOSTNAME@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SYS_HOSTNAME@GOTPAGEOFF]
Lloh2:
	adrp	x28, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x28, [x28, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	adrp	x23, _LOG_ERR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _LOG_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x22, _failure_retry_rate@GOTPAGE
Lloh7:
	ldr	x22, [x22, _failure_retry_rate@GOTPAGEOFF]
Lloh8:
	adrp	x21, _POLLIN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _POLLIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	ldr	x2, [x27]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_sleep
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
	ldr	w1, [x28]
	bl	_open
	tbnz	w0, #31, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	stp	xzr, xzr, [x26]
	str	w0, [sp, #8]
	str	w19, [sp, #32]
	ldr	x8, [x21]
	stp	xzr, x8, [sp, #40]
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #-1
	bl	_poll
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #56
	mov	x0, x24
	mov	w2, #128
	bl	_read_hostname
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [sp, #56]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	add	x2, sp, #56
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #56
	mov	x0, x19
	bl	_process_udev_event
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #56
	mov	w1, #0
	bl	_set_rdma_node_desc
	mov	x25, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	ldr	x2, [x27]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_close
	cbnz	w25, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_HOSTNAME,8,3               ; @SYS_HOSTNAME
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Open %s Failed: retry in %d seconds\n"

	.comm	_failure_retry_rate,4,2         ; @failure_retry_rate
	.comm	_POLLIN,8,3                     ; @POLLIN
l_.str.1:                               ; @.str.1
	.asciz	"Hostname change: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Poll %s Failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_monitor
.subsections_via_symbols
