	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function main
LCPI0_0:
	.long	0x42aa0000                      ## float 85
LCPI0_1:
	.long	0x428c0000                      ## float 70
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_signals_init
	movq	(%r14), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_no_argument@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rcx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%edx, %edx
	callq	_parse_option
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rcx
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%edx, %edx
	callq	_parse_option
	movq	_f_parse_option@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_parse_engine_options_long
	movq	_optind@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	incl	%eax
	cmpl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	_debug_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_DEBUG_FILEDUMP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_16
## %bb.3:
	movq	_port@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DEBUG_UDPDUMP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
LBB0_5:
	movq	_DHCP_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
LBB0_6:
	movq	_PRIVILEGED_TCP_PORTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_open_server_sockets
LBB0_8:
	movq	_maxconn@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_raise_file_rlimit
	testq	%rax, %rax
	js	LBB0_9
## %bb.11:
	xorl	%edi, %edi
	callq	_aes_load_pwd_file
	movq	_username@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_change_user
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	callq	_init_dyn_data
	xorl	%edi, %edi
	callq	_init_msg_buffers
	movslq	(%r15), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_dhcp_config_load
	testq	%rax, %rax
	js	LBB0_14
## %bb.15:
	xorl	%edi, %edi
	callq	_time
	movq	_start_time@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_start_server
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movslq	(%r15), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_file_dump
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_exit
LBB0_9:
	movq	(%rbx), %rsi
	addq	$16, %rsi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_12:
	movq	(%rbx), %rax
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rsi
	cmovneq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_10
LBB0_14:
	movslq	(%r15), %rax
	movq	(%r14,%rax,8), %rsi
	leaq	L_.str.7(%rip), %rdi
LBB0_10:
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_progname,8,3                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"debug-udpdump"

	.comm	_no_argument,4,2                ## @no_argument
L_.str.1:                               ## @.str.1
	.asciz	"listen 67/68 ports and dump received packets to the log"

L_.str.2:                               ## @.str.2
	.asciz	"debug-filedump"

L_.str.3:                               ## @.str.3
	.asciz	"parse packet from file (filename is given in <config> parameter) and exit"

	.comm	_f_parse_option,4,2             ## @f_parse_option
	.comm	_optind,4,2                     ## @optind
	.comm	_debug_mode,8,3                 ## @debug_mode
	.comm	_DEBUG_FILEDUMP,8,3             ## @DEBUG_FILEDUMP
	.comm	_port,8,3                       ## @port
	.comm	_DEBUG_UDPDUMP,8,3              ## @DEBUG_UDPDUMP
	.comm	_DHCP_PORT,8,3                  ## @DHCP_PORT
	.comm	_PRIVILEGED_TCP_PORTS,8,3       ## @PRIVILEGED_TCP_PORTS
	.comm	_maxconn,8,3                    ## @maxconn
L_.str.4:                               ## @.str.4
	.asciz	"fatal: cannot raise open file limit to %d\n"

	.comm	_username,8,3                   ## @username
L_.str.5:                               ## @.str.5
	.asciz	"fatal: cannot change user to %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"(none)"

L_.str.7:                               ## @.str.7
	.asciz	"fatal: fail to load config file '%s'.\n"

	.comm	_start_time,4,2                 ## @start_time
.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_signals_init
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _progname@GOTPAGE
Lloh1:
	ldr	x9, [x9, _progname@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
Lloh3:
	adrp	x21, _no_argument@GOTPAGE
Lloh4:
	ldr	x21, [x21, _no_argument@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w8, #1118437376
	fmov	s0, w8
	mov	w2, #0
	bl	_parse_option
	ldr	w1, [x21]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh11:
	adrp	x3, l_.str.3@PAGE
Lloh12:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w2, #0
	bl	_parse_option
Lloh13:
	adrp	x8, _f_parse_option@GOTPAGE
Lloh14:
	ldr	x8, [x8, _f_parse_option@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_parse_engine_options_long
Lloh16:
	adrp	x21, _optind@GOTPAGE
Lloh17:
	ldr	x21, [x21, _optind@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	cmp	w8, w20
	b.eq	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
Lloh18:
	adrp	x8, _debug_mode@GOTPAGE
Lloh19:
	ldr	x8, [x8, _debug_mode@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x8]
Lloh21:
	adrp	x8, _DEBUG_FILEDUMP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DEBUG_FILEDUMP@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x10, x8
	b.eq	LBB0_11
; %bb.3:
Lloh24:
	adrp	x9, _port@GOTPAGE
Lloh25:
	ldr	x9, [x9, _port@GOTPAGEOFF]
	ldr	x8, [x9]
Lloh26:
	adrp	x11, _DEBUG_UDPDUMP@GOTPAGE
Lloh27:
	ldr	x11, [x11, _DEBUG_UDPDUMP@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	cmp	x8, #0
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh29:
	adrp	x8, _DHCP_PORT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DHCP_PORT@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x9]
LBB0_5:
Lloh32:
	adrp	x9, _PRIVILEGED_TCP_PORTS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PRIVILEGED_TCP_PORTS@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
	bl	_open_server_sockets
LBB0_7:
Lloh35:
	adrp	x20, _maxconn@GOTPAGE
Lloh36:
	ldr	x20, [x20, _maxconn@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, #16
	bl	_raise_file_rlimit
	tbnz	x0, #63, LBB0_12
; %bb.8:
	mov	w0, #0
	bl	_aes_load_pwd_file
Lloh37:
	adrp	x20, _username@GOTPAGE
Lloh38:
	ldr	x20, [x20, _username@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_change_user
	tbnz	x0, #63, LBB0_13
; %bb.9:
	bl	_init_dyn_data
	mov	w0, #0
	bl	_init_msg_buffers
	ldrsw	x8, [x21]
	ldr	x0, [x19, x8, lsl #3]
	bl	_dhcp_config_load
	tbnz	x0, #63, LBB0_14
; %bb.10:
	mov	x0, #0
	bl	_time
Lloh39:
	adrp	x8, _start_time@GOTPAGE
Lloh40:
	ldr	x8, [x8, _start_time@GOTPAGEOFF]
Lloh41:
	str	w0, [x8]
	bl	_start_server
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldrsw	x8, [x21]
	ldr	x0, [x19, x8, lsl #3]
	bl	_file_dump
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_exit
LBB0_12:
	ldr	x8, [x20]
	add	x1, x8, #16
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	x8, [x20]
Lloh44:
	adrp	x9, l_.str.6@PAGE
Lloh45:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x1, x9, x8, eq
Lloh46:
	adrp	x0, l_.str.5@PAGE
Lloh47:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldrsw	x8, [x21]
	ldr	x1, [x19, x8, lsl #3]
Lloh48:
	adrp	x0, l_.str.7@PAGE
Lloh49:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_15:
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_progname,8,3                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"debug-udpdump"

	.comm	_no_argument,4,2                ; @no_argument
l_.str.1:                               ; @.str.1
	.asciz	"listen 67/68 ports and dump received packets to the log"

l_.str.2:                               ; @.str.2
	.asciz	"debug-filedump"

l_.str.3:                               ; @.str.3
	.asciz	"parse packet from file (filename is given in <config> parameter) and exit"

	.comm	_f_parse_option,4,2             ; @f_parse_option
	.comm	_optind,4,2                     ; @optind
	.comm	_debug_mode,8,3                 ; @debug_mode
	.comm	_DEBUG_FILEDUMP,8,3             ; @DEBUG_FILEDUMP
	.comm	_port,8,3                       ; @port
	.comm	_DEBUG_UDPDUMP,8,3              ; @DEBUG_UDPDUMP
	.comm	_DHCP_PORT,8,3                  ; @DHCP_PORT
	.comm	_PRIVILEGED_TCP_PORTS,8,3       ; @PRIVILEGED_TCP_PORTS
	.comm	_maxconn,8,3                    ; @maxconn
l_.str.4:                               ; @.str.4
	.asciz	"fatal: cannot raise open file limit to %d\n"

	.comm	_username,8,3                   ; @username
l_.str.5:                               ; @.str.5
	.asciz	"fatal: cannot change user to %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"(none)"

l_.str.7:                               ; @.str.7
	.asciz	"fatal: fail to load config file '%s'.\n"

	.comm	_start_time,4,2                 ; @start_time
.subsections_via_symbols
