	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_us428ctls_poll
_snd_us428ctls_poll:                    ## @snd_us428ctls_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_USX2Y_STAT_CHIP_HUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_POLLHUP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rax), %rbx
	addq	$4, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_poll_wait
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	8(%rbx), %rcx
	je	LBB0_7
## %bb.5:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_USX2Y_STAT_CHIP_HUP,4,2        ## @USX2Y_STAT_CHIP_HUP
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_POLLIN,4,2                     ## @POLLIN
	.no_dead_strip	_snd_us428ctls_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_us428ctls_poll
_snd_us428ctls_poll:                    ; @snd_us428ctls_poll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _USX2Y_STAT_CHIP_HUP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _USX2Y_STAT_CHIP_HUP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _POLLHUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLHUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	x19, [x8, #8]
	add	x8, x8, #4
	mov	x0, x1
	mov	x1, x8
	bl	_poll_wait
	cbz	x19, LBB0_4
; %bb.3:
	ldp	x8, x9, [x19]
Lloh6:
	adrp	x10, _POLLIN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, wzr, w10, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USX2Y_STAT_CHIP_HUP,4,2        ; @USX2Y_STAT_CHIP_HUP
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_POLLIN,4,2                     ; @POLLIN
	.no_dead_strip	_snd_us428ctls_poll
.subsections_via_symbols
