	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_watch
_add_watch:                             ## @add_watch
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_dbus_watch_get_enabled
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_dbus_watch_get_flags
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_dbus_watch_get_unix_fd
	movl	%eax, %r15d
	movq	_EVENT_TYPE_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_process_watch_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_eloop_register_sock
	movq	_DBUS_WATCH_READABLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_EVENT_TYPE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_process_watch_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_eloop_register_sock
LBB0_3:
	movq	_DBUS_WATCH_WRITABLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_EVENT_TYPE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_process_watch_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_eloop_register_sock
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dbus_watch_set_data
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EVENT_TYPE_EXCEPTION,4,2       ## @EVENT_TYPE_EXCEPTION
	.comm	_process_watch_exception,4,2    ## @process_watch_exception
	.comm	_DBUS_WATCH_READABLE,4,2        ## @DBUS_WATCH_READABLE
	.comm	_EVENT_TYPE_READ,4,2            ## @EVENT_TYPE_READ
	.comm	_process_watch_read,4,2         ## @process_watch_read
	.comm	_DBUS_WATCH_WRITABLE,4,2        ## @DBUS_WATCH_WRITABLE
	.comm	_EVENT_TYPE_WRITE,4,2           ## @EVENT_TYPE_WRITE
	.comm	_process_watch_write,4,2        ## @process_watch_write
	.no_dead_strip	_add_watch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_watch
_add_watch:                             ; @add_watch
	.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, x1
	mov	x20, x0
	bl	_dbus_watch_get_enabled
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_dbus_watch_get_flags
	mov	x22, x0
	mov	x0, x20
	bl	_dbus_watch_get_unix_fd
	mov	x21, x0
Lloh0:
	adrp	x8, _EVENT_TYPE_EXCEPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENT_TYPE_EXCEPTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _process_watch_exception@GOTPAGE
Lloh4:
	ldr	x8, [x8, _process_watch_exception@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x19
	mov	x4, x20
	bl	_eloop_register_sock
Lloh6:
	adrp	x8, _DBUS_WATCH_READABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBUS_WATCH_READABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _EVENT_TYPE_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVENT_TYPE_READ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _process_watch_read@GOTPAGE
Lloh13:
	ldr	x8, [x8, _process_watch_read@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	mov	x4, x20
	bl	_eloop_register_sock
LBB0_3:
Lloh15:
	adrp	x8, _DBUS_WATCH_WRITABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBUS_WATCH_WRITABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _EVENT_TYPE_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVENT_TYPE_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _process_watch_write@GOTPAGE
Lloh22:
	ldr	x8, [x8, _process_watch_write@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	mov	x4, x20
	bl	_eloop_register_sock
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_dbus_watch_set_data
LBB0_6:
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EVENT_TYPE_EXCEPTION,4,2       ; @EVENT_TYPE_EXCEPTION
	.comm	_process_watch_exception,4,2    ; @process_watch_exception
	.comm	_DBUS_WATCH_READABLE,4,2        ; @DBUS_WATCH_READABLE
	.comm	_EVENT_TYPE_READ,4,2            ; @EVENT_TYPE_READ
	.comm	_process_watch_read,4,2         ; @process_watch_read
	.comm	_DBUS_WATCH_WRITABLE,4,2        ; @DBUS_WATCH_WRITABLE
	.comm	_EVENT_TYPE_WRITE,4,2           ; @EVENT_TYPE_WRITE
	.comm	_process_watch_write,4,2        ; @process_watch_write
	.no_dead_strip	_add_watch
.subsections_via_symbols
