	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_stream_hwdep_poll
_usb_stream_hwdep_poll:                 ## @usb_stream_hwdep_poll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r13
	leaq	24(%r13), %rsi
	movq	%r15, %rdi
	callq	_poll_wait
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLOUT@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	(%rax), %ebx
	movq	_POLLWRNORM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_POLLERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_trylock
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rcx
	movq	_usb_stream_ready@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	leaq	8(%rax), %rcx
	cmpq	%r15, 8(%r13)
	cmovneq	%r13, %rcx
	movl	12(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	%eax, (%rcx)
	movl	(%r12), %ebx
	movq	_POLLIN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_POLLWRNORM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_usb_stream_ready,8,3           ## @usb_stream_ready
	.no_dead_strip	_usb_stream_hwdep_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_stream_hwdep_poll
_usb_stream_hwdep_poll:                 ; @usb_stream_hwdep_poll
	.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	x20, x1
	ldr	x23, [x0]
	add	x1, x23, #24
	mov	x0, x20
	bl	_poll_wait
Lloh0:
	adrp	x22, _POLLIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _POLLIN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _POLLOUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _POLLOUT@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh4:
	adrp	x25, _POLLWRNORM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _POLLWRNORM@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _POLLERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLLERR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w8, w9
	add	x19, x23, #4
	mov	x0, x19
	bl	_mutex_trylock
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x8]
Lloh9:
	adrp	x10, _usb_stream_ready@GOTPAGE
Lloh10:
	ldr	x10, [x10, _usb_stream_ready@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x23, #8]
	add	x10, x8, #8
	cmp	x9, x20
	csel	x9, x10, x23, eq
	ldr	w10, [x9]
	ldr	w8, [x8, #12]
	cmp	w10, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	str	w8, [x9]
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w21, w8, w9
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_usb_stream_ready,8,3           ; @usb_stream_ready
	.no_dead_strip	_usb_stream_hwdep_poll
.subsections_via_symbols
