	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rewrite_client_leases          ## -- Begin function rewrite_client_leases
	.p2align	4, 0x90
_rewrite_client_leases:                 ## @rewrite_client_leases
	.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	%rdi, %r14
	movq	_leaseFile@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	callq	_fflush
	movq	(%r15), %rdi
	callq	_rewind
	jmp	LBB0_4
LBB0_1:
	movq	_path_dhclient_db@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_4:
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_write_client_lease
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rax
LBB0_7:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_write_client_lease
LBB0_9:
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rewrite_client_leases          ; -- Begin function rewrite_client_leases
	.p2align	2
_rewrite_client_leases:                 ; @rewrite_client_leases
	.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, x0
Lloh0:
	adrp	x21, _leaseFile@GOTPAGE
Lloh1:
	ldr	x21, [x21, _leaseFile@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_fflush
	ldr	x0, [x21]
	bl	_rewind
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x20, _path_dhclient_db@GOTPAGE
Lloh3:
	ldr	x20, [x20, _path_dhclient_db@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [x21]
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x20]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	ldr	x8, [x19]
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_write_client_lease
	ldr	x20, [x20]
	cbnz	x20, LBB0_5
; %bb.6:
	ldr	x8, [x19]
LBB0_7:
	ldr	x1, [x8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w2, #1
	bl	_write_client_lease
LBB0_9:
	ldr	x0, [x21]
	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
	b	_fflush
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.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"

.subsections_via_symbols
