	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_devd_socket
_create_devd_socket:                    ## @create_devd_socket
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-40(%rbp), %rdi
	movl	$12, %esi
	callq	_bzero
	movq	_PF_LOCAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	(%r14), %eax
	movl	%eax, -32(%rbp)
	movl	$12, -40(%rbp)
	movl	-36(%rbp), %edi
	movq	_PATH_DEVD_PIPE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$3, %edx
	callq	_strlcpy
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.3:
	movq	_LOG_ERR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_syslog
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %ebx
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_syslog
	jmp	LBB0_5
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PATH_DEVD_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create the socket for %s: %m"

	.comm	_PATH_DEVD_PIPE,4,2             ## @PATH_DEVD_PIPE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to connect socket for %s: %m"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to close socket for %s: %m"

	.no_dead_strip	_create_devd_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_devd_socket
_create_devd_socket:                    ; @create_devd_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w20, #12
	mov	x0, sp
	mov	w1, #12
	bl	_bzero
Lloh0:
	adrp	x21, _PF_LOCAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PF_LOCAL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21]
	str	w8, [sp, #8]
	str	w20, [sp]
	ldr	w0, [sp, #4]
Lloh5:
	adrp	x20, _PATH_DEVD_PIPE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PATH_DEVD_PIPE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #3
	bl	_strlcpy
	mov	x1, sp
	mov	x0, x19
	mov	w2, #12
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.2:
Lloh7:
	adrp	x21, _LOG_ERR@GOTPAGE
Lloh8:
	ldr	x21, [x21, _LOG_ERR@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w2, [x20]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	mov	x0, x19
	bl	_close
	tbz	x0, #63, LBB0_6
; %bb.3:
	ldr	w0, [x21]
	ldr	w2, [x20]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _PATH_DEVD_PIPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PATH_DEVD_PIPE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_syslog
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create the socket for %s: %m"

	.comm	_PATH_DEVD_PIPE,4,2             ; @PATH_DEVD_PIPE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to connect socket for %s: %m"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to close socket for %s: %m"

	.no_dead_strip	_create_devd_socket
.subsections_via_symbols
