	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_physical_doUpdateSet           ## -- Begin function physical_doUpdateSet
	.p2align	4, 0x90
_physical_doUpdateSet:                  ## @physical_doUpdateSet
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_descriptor2physical
	movl	(%rax), %edi
	testl	%edi, %edi
	js	LBB0_14
## %bb.1:
	movq	%rax, %r13
	testq	%rbx, %rbx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_6
LBB0_5:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_FD_SET
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_log_Printf
	incl	%r15d
LBB0_6:
	testq	%r12, %r12
	je	LBB0_13
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.8:
	movq	%r13, %rdi
	addq	$4, %rdi
	callq	_link_QueueLen
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 8(%r13)
	je	LBB0_13
LBB0_10:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_log_Printf
	incl	%r15d
	jmp	LBB0_11
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_14
LBB0_11:
	movl	(%r13), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%eax, (%rcx)
	jg	LBB0_15
## %bb.12:
	incl	%eax
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_LogTIMER,4,2                   ## @LogTIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: fdset(r) %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: fdset(e) %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: fdset(w) %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_physical_doUpdateSet           ; -- Begin function physical_doUpdateSet
	.p2align	2
_physical_doUpdateSet:                  ; @physical_doUpdateSet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x19, x4
	mov	x24, x3
	mov	x22, x2
	mov	x21, x1
	bl	_descriptor2physical
	mov	x20, x0
	ldr	w0, [x0]
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh0:
	adrp	x25, _LogTIMER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LogTIMER@GOTPAGEOFF]
	cbz	x21, LBB0_3
; %bb.2:
	mov	x1, x21
	bl	_FD_SET
	ldr	w0, [x25]
	ldp	w3, w2, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	w21, #1
LBB0_3:
	cbz	x24, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	mov	x1, x24
	bl	_FD_SET
	ldr	w0, [x25]
	ldp	w3, w2, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
	add	w21, w21, #1
LBB0_5:
	cbz	x22, LBB0_11
; %bb.6:
	cbnz	w23, LBB0_9
; %bb.7:
	add	x0, x20, #4
	bl	_link_QueueLen
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
LBB0_9:
	ldr	w0, [x20]
	mov	x1, x22
	bl	_FD_SET
	ldr	w0, [x25]
	ldp	w3, w2, [x20]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
	add	w21, w21, #1
	b	LBB0_12
LBB0_10:
	mov	w21, #0
	b	LBB0_14
LBB0_11:
	cbz	w21, LBB0_14
LBB0_12:
	ldr	w9, [x19]
	ldr	w8, [x20]
	cmp	w9, w8
	b.gt	LBB0_14
; %bb.13:
	add	w8, w8, #1
	str	w8, [x19]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LogTIMER,4,2                   ; @LogTIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: fdset(r) %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: fdset(e) %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: fdset(w) %d\n"

.subsections_via_symbols
