	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audit_pipe_poll
_audit_pipe_poll:                       ## @audit_pipe_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	leaq	-40(%rbp), %rdi
	callq	_devfs_get_cdevpriv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_POLLIN@GOTPCREL(%rip), %r12
	movq	_POLLRDNORM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%r12), %eax
	testl	%r15d, %eax
	je	LBB0_2
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_AUDIT_PIPE_LOCK
	movq	-40(%rbp), %rdi
	addq	$4, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %ebx
	orl	(%r12), %ebx
	andl	%r15d, %ebx
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_selrecord
	xorl	%ebx, %ebx
LBB0_6:
	movq	-40(%rbp), %rdi
	callq	_AUDIT_PIPE_UNLOCK
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_audit_pipe_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audit_pipe_poll
_audit_pipe_poll:                       ; @audit_pipe_poll
	.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	x20, x2
	mov	x19, x1
	add	x0, sp, #8
	bl	_devfs_get_cdevpriv
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x21, _POLLIN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _POLLIN@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _POLLRDNORM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _POLLRDNORM@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_AUDIT_PIPE_LOCK
	ldr	x8, [sp, #8]
	add	x0, x8, #4
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	and	w21, w8, w19
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_selrecord
	mov	w21, #0
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_AUDIT_PIPE_UNLOCK
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_audit_pipe_poll
.subsections_via_symbols
