	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setpfsync_syncpeer             ## -- Begin function setpfsync_syncpeer
	.p2align	4, 0x90
_setpfsync_syncpeer:                    ## @setpfsync_syncpeer
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_ifr@GOTPCREL(%rip), %rdx
	movq	%rbx, (%rdx)
	movq	_SIOCGETPFSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	cmpq	(%r12), %rcx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_SIOCSETPFSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ifr@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	-40(%rbp), %rdi
	callq	_freeaddrinfo
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifr,8,3                        ## @ifr
	.comm	_SIOCGETPFSYNC,4,2              ## @SIOCGETPFSYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCGETPFSYNC"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.1:                               ## @.str.1
	.asciz	"error in parsing address string: %s"

L_.str.2:                               ## @.str.2
	.asciz	"only IPv4 addresses supported for the syncpeer"

	.comm	_SIOCSETPFSYNC,4,2              ## @SIOCSETPFSYNC
L_.str.3:                               ## @.str.3
	.asciz	"SIOCSETPFSYNC"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setpfsync_syncpeer             ; -- Begin function setpfsync_syncpeer
	.p2align	2
_setpfsync_syncpeer:                    ; @setpfsync_syncpeer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x0
	add	x21, sp, #40
	add	x0, sp, #40
	mov	w1, #4
	bl	_bzero
Lloh0:
	adrp	x2, _ifr@GOTPAGE
Lloh1:
	ldr	x2, [x2, _ifr@GOTPAGEOFF]
	str	x21, [x2]
Lloh2:
	adrp	x8, _SIOCGETPFSYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCGETPFSYNC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh7:
	adrp	x21, _AF_INET@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AF_INET@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp, #32]
Lloh9:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_4
; %bb.3:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh16:
	adrp	x8, _SIOCSETPFSYNC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIOCSETPFSYNC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, _ifr@GOTPAGE
Lloh20:
	ldr	x2, [x2, _ifr@GOTPAGEOFF]
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ifr,8,3                        ; @ifr
	.comm	_SIOCGETPFSYNC,4,2              ; @SIOCGETPFSYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCGETPFSYNC"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.1:                               ; @.str.1
	.asciz	"error in parsing address string: %s"

l_.str.2:                               ; @.str.2
	.asciz	"only IPv4 addresses supported for the syncpeer"

	.comm	_SIOCSETPFSYNC,4,2              ; @SIOCSETPFSYNC
l_.str.3:                               ; @.str.3
	.asciz	"SIOCSETPFSYNC"

.subsections_via_symbols
