	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_setttl
_ip_setttl:                             ## @ip_setttl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movq	$4, -16(%rbp)
	testq	%rsi, %rsi
	leaq	-16(%rbp), %rdx
	cmoveq	%rsi, %rdx
	leaq	L_.str(%rip), %rdi
	leaq	-4(%rbp), %rcx
	movl	$4, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-4(%rbp), %eax
	movq	_ip_defttl@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_syslog
	movl	$-1, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net.inet.ip.ttl"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"set net.inet.ip.ttl: %m"

	.comm	_ip_defttl,4,2                  ## @ip_defttl
	.no_dead_strip	_ip_setttl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_setttl
_ip_setttl:                             ; @ip_setttl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	w0, [x29, #-4]
	mov	w8, #4
	str	x8, [sp]
	mov	x8, sp
	cmp	x1, #0
	csel	x2, xzr, x8, eq
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	sub	x3, x29, #4
	mov	w4, #4
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	ldur	w8, [x29, #-4]
Lloh2:
	adrp	x9, _ip_defttl@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ip_defttl@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net.inet.ip.ttl"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"set net.inet.ip.ttl: %m"

	.comm	_ip_defttl,4,2                  ; @ip_defttl
	.no_dead_strip	_ip_setttl
.subsections_via_symbols
