	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_client_lease             ## -- Begin function write_client_lease
	.p2align	4, 0x90
_write_client_lease:                    ## @write_client_lease
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	testl	%edx, %edx
	jne	LBB0_3
## %bb.1:
	movl	_write_client_lease.leases_written(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _write_client_lease.leases_written(%rip)
	cmpl	$21, %eax
	jl	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_rewrite_client_leases
	movl	$0, _write_client_lease.leases_written(%rip)
LBB0_3:
	cmpq	$0, 64(%r15)
	je	LBB0_4
## %bb.25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_leaseFile@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	movq	_path_dhclient_db@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rdi
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_26
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	cmpq	$0, 56(%r15)
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movq	(%r12), %rdi
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rbx
	movl	48(%r15), %edi
	callq	_piaddr
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movq	(%r12), %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%r12), %rdi
	movq	(%rax), %rdx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	addq	$2, %r14
	cmpq	$256, %rbx                      ## imm = 0x100
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	-8(%rax,%r14,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r12), %r15
	movq	_dhcp_options@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %r13
	movl	(%rax,%r14,8), %esi
	movl	%ebx, %edi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_pretty_print_option
	movq	%r15, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_17
LBB0_18:
	leaq	24(%r15), %rdi
	callq	_gmtime
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	$1900, %ecx                     ## imm = 0x76C
	addl	4(%rax), %ecx
	movq	(%r12), %rdi
	movl	(%rax), %edx
	movl	8(%rax), %r8d
	incl	%r8d
	movl	12(%rax), %r9d
	movl	16(%rax), %r10d
	movl	20(%rax), %r11d
	movl	24(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_fprintf
	addq	$32, %rsp
LBB0_20:
	leaq	20(%r15), %rdi
	callq	_gmtime
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	$1900, %ecx                     ## imm = 0x76C
	addl	4(%rax), %ecx
	movq	(%r12), %rdi
	movl	(%rax), %edx
	movl	8(%rax), %r8d
	incl	%r8d
	movl	12(%rax), %r9d
	movl	16(%rax), %r10d
	movl	20(%rax), %r11d
	movl	24(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_fprintf
	addq	$32, %rsp
LBB0_22:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_gmtime
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	$1900, %ecx                     ## imm = 0x76C
	addl	4(%rax), %ecx
	movq	(%r12), %rdi
	movl	(%rax), %edx
	movl	8(%rax), %r8d
	incl	%r8d
	movl	12(%rax), %r9d
	movl	16(%rax), %r10d
	movl	20(%rax), %r11d
	movl	24(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_fprintf
	addq	$32, %rsp
LBB0_24:
	movq	(%r12), %rdi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
LBB0_26:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_write_client_lease.leases_written,4,2 ## @write_client_lease.leases_written
	.comm	_leaseFile,8,3                  ## @leaseFile
	.comm	_path_dhclient_db,4,2           ## @path_dhclient_db
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"can't create %s"

L_.str.2:                               ## @.str.2
	.asciz	"lease {\n"

L_.str.3:                               ## @.str.3
	.asciz	"  bootp;\n"

L_.str.4:                               ## @.str.4
	.asciz	"  interface \"%s\";\n"

L_.str.5:                               ## @.str.5
	.asciz	"  fixed-address %s;\n"

L_.str.6:                               ## @.str.6
	.asciz	"  filename \"%s\";\n"

L_.str.7:                               ## @.str.7
	.asciz	"  server-name \"%s\";\n"

L_.str.8:                               ## @.str.8
	.asciz	"  medium \"%s\";\n"

L_.str.9:                               ## @.str.9
	.asciz	"  option %s %s;\n"

	.comm	_dhcp_options,8,3               ## @dhcp_options
L_.str.10:                              ## @.str.10
	.asciz	"  renew %d %d/%d/%d %02d:%02d:%02d;\n"

L_.str.11:                              ## @.str.11
	.asciz	"  rebind %d %d/%d/%d %02d:%02d:%02d;\n"

L_.str.12:                              ## @.str.12
	.asciz	"  expire %d %d/%d/%d %02d:%02d:%02d;\n"

L_.str.13:                              ## @.str.13
	.asciz	"}\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_client_lease             ; -- Begin function write_client_lease
	.p2align	2
_write_client_lease:                    ; @write_client_lease
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x20, x0
	cbnz	w2, LBB0_3
; %bb.1:
	adrp	x21, _write_client_lease.leases_written@PAGE
	ldr	w8, [x21, _write_client_lease.leases_written@PAGEOFF]
	add	w9, w8, #1
	str	w9, [x21, _write_client_lease.leases_written@PAGEOFF]
	cmp	w8, #21
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_rewrite_client_leases
	str	wzr, [x21, _write_client_lease.leases_written@PAGEOFF]
LBB0_3:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
Lloh0:
	adrp	x23, _leaseFile@GOTPAGE
Lloh1:
	ldr	x23, [x23, _leaseFile@GOTPAGEOFF]
	ldr	x0, [x23]
	cbnz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x21, _path_dhclient_db@GOTPAGE
Lloh3:
	ldr	x21, [x21, _path_dhclient_db@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [x23]
	cbz	x0, LBB0_26
LBB0_7:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x0, [x23]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_9:
	ldr	x0, [x23]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x20, [x23]
	ldr	w0, [x19, #48]
	bl	_piaddr
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x0, [x23]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x0, [x23]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
LBB0_13:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x0, [x23]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
LBB0_15:
	mov	x24, #0
	mov	x20, #0
Lloh20:
	adrp	x25, _dhcp_options@GOTPAGE
Lloh21:
	ldr	x25, [x25, _dhcp_options@GOTPAGEOFF]
Lloh22:
	adrp	x21, l_.str.9@PAGE
Lloh23:
	add	x21, x21, l_.str.9@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x20, x20, #1
	add	x24, x24, #16
	cmp	x20, #256
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x2, [x8, x24]
	cbz	x2, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x22, [x23]
	ldr	x9, [x25]
	ldr	x26, [x9, x20, lsl #3]
	add	x8, x8, x24
	ldr	w1, [x8, #8]
	mov	x0, x20
	mov	w3, #1
	mov	w4, #1
	bl	_pretty_print_option
	stp	x26, x0, [sp]
	mov	x0, x22
	mov	x1, x21
	bl	_fprintf
	b	LBB0_16
LBB0_19:
	add	x0, x19, #24
	bl	_gmtime
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x23]
	ldp	w10, w9, [x0]
	add	w9, w9, #1900
	ldp	w11, w12, [x0, #8]
	add	w11, w11, #1
	ldp	w13, w14, [x0, #16]
	ldr	w15, [x0, #24]
	stp	x14, x15, [sp, #40]
	stp	x12, x13, [sp, #24]
	stp	x9, x11, [sp, #8]
Lloh24:
	adrp	x1, l_.str.10@PAGE
Lloh25:
	add	x1, x1, l_.str.10@PAGEOFF
	str	x10, [sp]
	mov	x0, x8
	bl	_fprintf
LBB0_21:
	add	x0, x19, #20
	bl	_gmtime
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x8, [x23]
	ldp	w10, w9, [x0]
	add	w9, w9, #1900
	ldp	w11, w12, [x0, #8]
	add	w11, w11, #1
	ldp	w13, w14, [x0, #16]
	ldr	w15, [x0, #24]
	stp	x14, x15, [sp, #40]
	stp	x12, x13, [sp, #24]
	stp	x9, x11, [sp, #8]
Lloh26:
	adrp	x1, l_.str.11@PAGE
Lloh27:
	add	x1, x1, l_.str.11@PAGEOFF
	str	x10, [sp]
	mov	x0, x8
	bl	_fprintf
LBB0_23:
	add	x0, x19, #16
	bl	_gmtime
	cbz	x0, LBB0_25
; %bb.24:
	ldr	x8, [x23]
	ldp	w10, w9, [x0]
	add	w9, w9, #1900
	ldp	w11, w12, [x0, #8]
	add	w11, w11, #1
	ldp	w13, w14, [x0, #16]
	ldr	w15, [x0, #24]
	stp	x14, x15, [sp, #40]
	stp	x12, x13, [sp, #24]
	stp	x9, x11, [sp, #8]
Lloh28:
	adrp	x1, l_.str.12@PAGE
Lloh29:
	add	x1, x1, l_.str.12@PAGEOFF
	str	x10, [sp]
	mov	x0, x8
	bl	_fprintf
LBB0_25:
	ldr	x0, [x23]
Lloh30:
	adrp	x1, l_.str.13@PAGE
Lloh31:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_fprintf
	ldr	x0, [x23]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_fflush
LBB0_26:
	ldr	w1, [x21]
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_write_client_lease.leases_written,4,2 ; @write_client_lease.leases_written
	.comm	_leaseFile,8,3                  ; @leaseFile
	.comm	_path_dhclient_db,4,2           ; @path_dhclient_db
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"can't create %s"

l_.str.2:                               ; @.str.2
	.asciz	"lease {\n"

l_.str.3:                               ; @.str.3
	.asciz	"  bootp;\n"

l_.str.4:                               ; @.str.4
	.asciz	"  interface \"%s\";\n"

l_.str.5:                               ; @.str.5
	.asciz	"  fixed-address %s;\n"

l_.str.6:                               ; @.str.6
	.asciz	"  filename \"%s\";\n"

l_.str.7:                               ; @.str.7
	.asciz	"  server-name \"%s\";\n"

l_.str.8:                               ; @.str.8
	.asciz	"  medium \"%s\";\n"

l_.str.9:                               ; @.str.9
	.asciz	"  option %s %s;\n"

	.comm	_dhcp_options,8,3               ; @dhcp_options
l_.str.10:                              ; @.str.10
	.asciz	"  renew %d %d/%d/%d %02d:%02d:%02d;\n"

l_.str.11:                              ; @.str.11
	.asciz	"  rebind %d %d/%d/%d %02d:%02d:%02d;\n"

l_.str.12:                              ; @.str.12
	.asciz	"  expire %d %d/%d/%d %02d:%02d:%02d;\n"

l_.str.13:                              ; @.str.13
	.asciz	"}\n"

.subsections_via_symbols
