	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LOG_PID@GOTPCREL(%rip), %r12
	movq	_LOG_PERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	movq	_LOG_DAEMON@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rdi
	callq	_openlog
	leaq	l___const.main.opts(%rip), %rsi
	leaq	-336(%rbp), %rbx
	movl	$160, %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	_process_opts@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.13(%rip), %rax
	leaq	L_.str.12(%rip), %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rbx, %r8
	pushq	$0
	pushq	%rax
	callq	_ibdiag_process_opts
	addq	$16, %rsp
	movq	_ibd_nd_format@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULT_ND_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_foreground@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_closelog
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rdi
	callq	_openlog
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_daemon
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	xorl	%eax, %eax
	callq	_write_pidfile
LBB0_5:
	xorl	%eax, %eax
	callq	_setup_udev
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	_SYS_HOSTNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	leaq	-176(%rbp), %rsi
	movl	%eax, %edi
	movl	$128, %edx
	callq	_read_hostname
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movb	$0, -176(%rbp)
LBB0_7:
	leaq	-176(%rbp), %rdi
	movl	$1, %esi
	callq	_set_rdma_node_desc
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	callq	_monitor
	xorl	%eax, %eax
	callq	_remove_pidfile
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
LBB0_9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdma-ndd"

	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_LOG_PERROR,4,2                 ## @LOG_PERROR
	.comm	_LOG_DAEMON,4,2                 ## @LOG_DAEMON
L_.str.1:                               ## @.str.1
	.asciz	"retry_timer"

L_.str.2:                               ## @.str.2
	.asciz	"<retry_timer>"

L_.str.3:                               ## @.str.3
	.asciz	"Length of time to sleep when system errors occur when attempting to poll and or read the hostname from the system.\n"

L_.str.4:                               ## @.str.4
	.asciz	"retry_count"

L_.str.5:                               ## @.str.5
	.asciz	"<retry_count>"

L_.str.6:                               ## @.str.6
	.asciz	"Number of times to attempt to retry setting of the node description on failure\n"

L_.str.7:                               ## @.str.7
	.asciz	"foreground"

L_.str.8:                               ## @.str.8
	.asciz	"run in the foreground instead of as a daemon\n"

L_.str.9:                               ## @.str.9
	.asciz	"pidfile"

L_.str.10:                              ## @.str.10
	.asciz	"<pidfile>"

L_.str.11:                              ## @.str.11
	.asciz	"specify a pid file (daemon mode only)\n"

	.section	__DATA,__const
	.p2align	4                               ## @__const.main.opts
l___const.main.opts:
	.quad	L_.str.1
	.byte	116                             ## 0x74
	.space	3
	.long	1                               ## 0x1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.byte	114                             ## 0x72
	.space	3
	.long	1                               ## 0x1
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7
	.byte	102                             ## 0x66
	.space	3
	.long	0                               ## 0x0
	.quad	0
	.quad	L_.str.8
	.quad	L_.str.9
	.byte	0                               ## 0x0
	.space	3
	.long	1                               ## 0x1
	.quad	L_.str.10
	.quad	L_.str.11
	.space	32

	.section	__TEXT,__cstring,cstring_literals
L_.str.12:                              ## @.str.12
	.asciz	"CPDLGtsKyevd"

	.comm	_process_opts,4,2               ## @process_opts
L_.str.13:                              ## @.str.13
	.space	1

	.comm	_ibd_nd_format,8,3              ## @ibd_nd_format
	.comm	_DEFAULT_ND_FORMAT,8,3          ## @DEFAULT_ND_FORMAT
	.comm	_foreground,4,2                 ## @foreground
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.14:                              ## @.str.14
	.asciz	"Failed to daemonize\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.15:                              ## @.str.15
	.asciz	"Node Descriptor format (%s)\n"

	.comm	_SYS_HOSTNAME,4,2               ## @SYS_HOSTNAME
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _LOG_PID@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LOG_PID@GOTPAGEOFF]
Lloh5:
	adrp	x8, _LOG_PERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_PERROR@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w9
Lloh8:
	adrp	x22, _LOG_DAEMON@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LOG_DAEMON@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_openlog
Lloh12:
	adrp	x8, l___const.main.opts@PAGE
Lloh13:
	add	x8, x8, l___const.main.opts@PAGEOFF
	ldp	q0, q1, [x8, #96]
	stp	q0, q1, [sp, #112]
	ldp	q0, q1, [x8, #128]
	stp	q0, q1, [sp, #144]
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #48]
	ldp	q0, q1, [x8, #64]
	stp	q0, q1, [sp, #80]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
Lloh14:
	adrp	x8, _process_opts@GOTPAGE
Lloh15:
	ldr	x8, [x8, _process_opts@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
Lloh17:
	adrp	x3, l_.str.12@PAGE
Lloh18:
	add	x3, x3, l_.str.12@PAGEOFF
Lloh19:
	adrp	x6, l_.str.13@PAGE
Lloh20:
	add	x6, x6, l_.str.13@PAGEOFF
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	x7, #0
	bl	_ibdiag_process_opts
Lloh21:
	adrp	x19, _ibd_nd_format@GOTPAGE
Lloh22:
	ldr	x19, [x19, _ibd_nd_format@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh23:
	adrp	x8, _DEFAULT_ND_FORMAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEFAULT_ND_FORMAT@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
Lloh26:
	adrp	x8, _foreground@GOTPAGE
Lloh27:
	ldr	x8, [x8, _foreground@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.3:
	bl	_closelog
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_openlog
	mov	w0, #0
	mov	w1, #0
	bl	_daemon
	cbnz	x0, LBB0_10
; %bb.4:
	bl	_write_pidfile
LBB0_5:
	bl	_setup_udev
Lloh31:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.15@PAGE
Lloh35:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_syslog
Lloh36:
	adrp	x8, _SYS_HOSTNAME@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SYS_HOSTNAME@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	add	x1, sp, #184
	mov	w2, #128
	bl	_read_hostname
	cbz	x0, LBB0_7
; %bb.6:
	strb	wzr, [sp, #184]
LBB0_7:
	add	x0, sp, #184
	mov	w1, #1
	bl	_set_rdma_node_desc
	mov	x0, x19
	bl	_close
	bl	_monitor
	bl	_remove_pidfile
	ldur	x8, [x29, #-56]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_9:
	bl	___stack_chk_fail
LBB0_10:
Lloh45:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.14@PAGE
Lloh49:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_syslog
Lloh50:
	adrp	x8, _errno@GOTPAGE
Lloh51:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdma-ndd"

	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_LOG_PERROR,4,2                 ; @LOG_PERROR
	.comm	_LOG_DAEMON,4,2                 ; @LOG_DAEMON
l_.str.1:                               ; @.str.1
	.asciz	"retry_timer"

l_.str.2:                               ; @.str.2
	.asciz	"<retry_timer>"

l_.str.3:                               ; @.str.3
	.asciz	"Length of time to sleep when system errors occur when attempting to poll and or read the hostname from the system.\n"

l_.str.4:                               ; @.str.4
	.asciz	"retry_count"

l_.str.5:                               ; @.str.5
	.asciz	"<retry_count>"

l_.str.6:                               ; @.str.6
	.asciz	"Number of times to attempt to retry setting of the node description on failure\n"

l_.str.7:                               ; @.str.7
	.asciz	"foreground"

l_.str.8:                               ; @.str.8
	.asciz	"run in the foreground instead of as a daemon\n"

l_.str.9:                               ; @.str.9
	.asciz	"pidfile"

l_.str.10:                              ; @.str.10
	.asciz	"<pidfile>"

l_.str.11:                              ; @.str.11
	.asciz	"specify a pid file (daemon mode only)\n"

	.section	__DATA,__const
	.p2align	3                               ; @__const.main.opts
l___const.main.opts:
	.quad	l_.str.1
	.byte	116                             ; 0x74
	.space	3
	.long	1                               ; 0x1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.byte	114                             ; 0x72
	.space	3
	.long	1                               ; 0x1
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.byte	102                             ; 0x66
	.space	3
	.long	0                               ; 0x0
	.quad	0
	.quad	l_.str.8
	.quad	l_.str.9
	.byte	0                               ; 0x0
	.space	3
	.long	1                               ; 0x1
	.quad	l_.str.10
	.quad	l_.str.11
	.space	32

	.section	__TEXT,__cstring,cstring_literals
l_.str.12:                              ; @.str.12
	.asciz	"CPDLGtsKyevd"

	.comm	_process_opts,4,2               ; @process_opts
l_.str.13:                              ; @.str.13
	.space	1

	.comm	_ibd_nd_format,8,3              ; @ibd_nd_format
	.comm	_DEFAULT_ND_FORMAT,8,3          ; @DEFAULT_ND_FORMAT
	.comm	_foreground,4,2                 ; @foreground
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.14:                              ; @.str.14
	.asciz	"Failed to daemonize\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.15:                              ; @.str.15
	.asciz	"Node Descriptor format (%s)\n"

	.comm	_SYS_HOSTNAME,4,2               ; @SYS_HOSTNAME
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
.subsections_via_symbols
