	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_poll
_isdn_poll:                             ## @isdn_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, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_iminor
	movl	%eax, %ebx
	movq	_ISDN_MINOR_CTRL@GOTPCREL(%rip), %r15
	movl	%eax, %edi
	subl	(%r15), %edi
	callq	_isdn_minor2drv
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_ISDN_MINOR_STATUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.1:
	movq	_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_poll_wait
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.2:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	jmp	LBB0_11
LBB0_3:
	cmpl	(%r15), %ebx
	jb	LBB0_9
## %bb.4:
	movq	_ISDN_MINOR_CTRLMAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	ja	LBB0_9
## %bb.5:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	js	LBB0_6
## %bb.7:
	movq	_dev@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	%ecx, %ebx
	movq	(%rax,%rbx,8), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_poll_wait
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	jmp	LBB0_11
LBB0_9:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_POLLHUP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r13d
LBB0_11:
	xorl	%eax, %eax
	callq	_unlock_kernel
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_MINOR_CTRL,4,2            ## @ISDN_MINOR_CTRL
	.comm	_ISDN_MINOR_STATUS,4,2          ## @ISDN_MINOR_STATUS
	.comm	_dev,8,3                        ## @dev
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_ISDN_MINOR_CTRLMAX,4,2         ## @ISDN_MINOR_CTRLMAX
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_ISDN_MINOR_PPPMAX,4,2          ## @ISDN_MINOR_PPPMAX
	.no_dead_strip	_isdn_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdn_poll
_isdn_poll:                             ; @isdn_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_iminor
	mov	x22, x0
Lloh0:
	adrp	x23, _ISDN_MINOR_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISDN_MINOR_CTRL@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w0, w0, w8
	bl	_isdn_minor2drv
	mov	x21, x0
	bl	_lock_kernel
Lloh2:
	adrp	x8, _ISDN_MINOR_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISDN_MINOR_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _dev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x20
	bl	_poll_wait
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.2:
Lloh8:
	adrp	x8, _POLLIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w19, w9, w8
	b	LBB0_11
LBB0_3:
	ldr	w8, [x23]
Lloh14:
	adrp	x9, _ISDN_MINOR_CTRLMAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISDN_MINOR_CTRLMAX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w22, w9, #2, hs
	b.ls	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _POLLERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	tbnz	w21, #31, LBB0_9
; %bb.6:
Lloh19:
	adrp	x22, _dev@GOTPAGE
Lloh20:
	ldr	x22, [x22, _dev@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	w9, w21
	lsl	x21, x9, #3
	ldr	x8, [x8, x21]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x20
	bl	_poll_wait
Lloh21:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w19, w9, w8
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.7:
Lloh27:
	adrp	x8, _POLLIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh31:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w19, w8, w9
	b	LBB0_11
LBB0_8:
	mov	w19, #0
	b	LBB0_11
LBB0_9:
Lloh33:
	adrp	x8, _POLLHUP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _POLLHUP@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
	bl	_unlock_kernel
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_MINOR_CTRL,4,2            ; @ISDN_MINOR_CTRL
	.comm	_ISDN_MINOR_STATUS,4,2          ; @ISDN_MINOR_STATUS
	.comm	_dev,8,3                        ; @dev
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_ISDN_MINOR_CTRLMAX,4,2         ; @ISDN_MINOR_CTRLMAX
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_ISDN_MINOR_PPPMAX,4,2          ; @ISDN_MINOR_PPPMAX
	.no_dead_strip	_isdn_poll
.subsections_via_symbols
